Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001442/0.001442, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008082/0.0008082, allocations: 102.7 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.547e-05/2.599e-05, allocations: 4 kB / 343.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09827/0.09832, allocations: 51.49 MB / 395.2 MB, free: 4.734 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3061/0.4045, allocations: 79.48 MB / 474.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001486/0.4047, allocations: 73.19 kB / 474.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01203/0.4167, allocations: 5.115 MB / 479.8 MB, free: 9.402 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.4167, allocations: 0 / 479.8 MB, free: 9.402 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.399e-05/0.4167, allocations: 4 kB / 479.8 MB, free: 9.398 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006002/0.4173, allocations: 0.5392 MB / 480.4 MB, free: 8.836 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.4174, allocations: 12.03 kB / 480.4 MB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.668e-05/0.4175, allocations: 36.39 kB / 480.4 MB, free: 8.789 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002226/0.4177, allocations: 263.8 kB / 480.7 MB, free: 8.516 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.4177, allocations: 12 kB / 480.7 MB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.976e-05/0.4178, allocations: 16 kB / 480.7 MB, free: 8.488 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002538/0.418, allocations: 156.7 kB / 480.9 MB, free: 8.395 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003091/0.4183, allocations: 204.3 kB / 481.1 MB, free: 8.234 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.4183, allocations: 0 / 481.1 MB, free: 8.234 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.4184, allocations: 4 kB / 481.1 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.4184, allocations: 4 kB / 481.1 MB, free: 8.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.4196, allocations: 0.9502 MB / 482 MB, free: 7.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.4198, allocations: 129.8 kB / 482.2 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.596e-05/0.4199, allocations: 59.78 kB / 482.2 MB, free: 7.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.4199, allocations: 0 / 482.2 MB, free: 7.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.4199, allocations: 41.25 kB / 482.3 MB, free: 7.188 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.665e-06/0.4199, allocations: 3.172 kB / 482.3 MB, free: 7.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002393/0.4202, allocations: 128.5 kB / 482.4 MB, free: 7.078 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.542e-05/0.4202, allocations: 55.41 kB / 482.4 MB, free: 7.012 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.4203, allocations: 159 kB / 482.6 MB, free: 6.871 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.4203, allocations: 25.7 kB / 482.6 MB, free: 6.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.895e-05/0.4204, allocations: 196.4 kB / 482.8 MB, free: 6.664 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/0.4204, allocations: 60.8 kB / 482.9 MB, free: 6.613 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.716e-06/0.4204, allocations: 0 / 482.9 MB, free: 6.613 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.011e-05/0.4205, allocations: 332.9 kB / 483.2 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.847e-05/0.4206, allocations: 42.5 kB / 483.2 MB, free: 6.262 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.533e-05/0.4207, allocations: 101.2 kB / 483.3 MB, free: 6.164 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.639e-05/0.4208, allocations: 58.84 kB / 483.4 MB, free: 6.129 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4208, allocations: 0 / 483.4 MB, free: 6.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002429/0.421, allocations: 195.8 kB / 483.6 MB, free: 5.965 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.421, allocations: 8.125 kB / 483.6 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.421, allocations: 4 kB / 483.6 MB, free: 5.953 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.4211, allocations: 0 / 483.6 MB, free: 5.953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.4213, allocations: 71.16 kB / 483.7 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.4213, allocations: 4 kB / 483.7 MB, free: 5.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.4215, allocations: 21.95 kB / 483.7 MB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.4215, allocations: 8 kB / 483.7 MB, free: 5.855 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.865e-05/0.4216, allocations: 112.3 kB / 483.8 MB, free: 5.742 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.4216, allocations: 23.77 kB / 483.8 MB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002203/0.4218, allocations: 141.7 kB / 484 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.4219, allocations: 4 kB / 484 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4219, allocations: 3.984 kB / 484 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4219, allocations: 0 / 484 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002206/0.4221, allocations: 258.4 kB / 484.2 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4221, allocations: 0 / 484.2 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002654/0.4224, allocations: 59.2 kB / 484.3 MB, free: 5.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.4224, allocations: 7.984 kB / 484.3 MB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.4224, allocations: 3.984 kB / 484.3 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4224, allocations: 3.953 kB / 484.3 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4224, allocations: 0.6562 kB / 484.3 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002896/0.4227, allocations: 292.8 kB / 484.6 MB, free: 5.027 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.435e-05/0.4228, allocations: 96.84 kB / 484.7 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.4228, allocations: 7.375 kB / 484.7 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.423, allocations: 15.98 kB / 484.7 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.423, allocations: 19.31 kB / 484.7 MB, free: 4.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.423, allocations: 7.938 kB / 484.7 MB, free: 4.871 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.382e-05/0.4231, allocations: 131.6 kB / 484.9 MB, free: 4.762 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4231, allocations: 0 / 484.9 MB, free: 4.762 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002906/0.4234, allocations: 75.67 kB / 484.9 MB, free: 4.688 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001264/0.4235, allocations: 107.2 kB / 485 MB, free: 4.574 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001942/0.4237, allocations: 123.7 kB / 485.2 MB, free: 4.488 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4238, allocations: 0 / 485.2 MB, free: 4.488 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.973e-05/0.4238, allocations: 57.56 kB / 485.2 MB, free: 4.449 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.424, allocations: 19.88 kB / 485.2 MB, free: 4.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009002/0.425, allocations: 0.6626 MB / 485.9 MB, free: 3.785 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.4251, allocations: 0.7769 MB / 486.7 MB, free: 2.984 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.329e-05/0.4252, allocations: 17.86 kB / 486.7 MB, free: 2.965 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.02e-05/0.4253, allocations: 23.42 kB / 486.7 MB, free: 2.941 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4253, allocations: 0 / 486.7 MB, free: 2.941 MB / 346.7 MB Notification: Performance of Templates: time 0.003492/0.4288, allocations: 1.531 MB / 488.2 MB, free: 1.465 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches