Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0024/0.002399, allocations: 181.4 kB / 8.15 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.738/1.738, allocations: 205.2 MB / 213.7 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001224/0.001224, allocations: 83.89 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.024e-05/1.047e-05, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2488, allocations: 47.55 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.3783, allocations: 80.57 MB / 442.4 MB, free: 5.492 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.3787, allocations: 75.95 kB / 442.5 MB, free: 5.418 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.06152/0.4402, allocations: 15.6 MB / 458.1 MB, free: 5.699 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.369e-05/0.4403, allocations: 12 kB / 458.1 MB, free: 5.688 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002459/0.4428, allocations: 0.7598 MB / 458.8 MB, free: 4.883 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.4429, allocations: 8.031 kB / 458.9 MB, free: 4.875 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005009/0.4479, allocations: 466.8 kB / 459.3 MB, free: 4.418 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007006/0.4486, allocations: 318.3 kB / 459.6 MB, free: 4.066 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.86e-05/0.4487, allocations: 18.62 kB / 459.6 MB, free: 4.051 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.4488, allocations: 32 kB / 459.7 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001795/0.4506, allocations: 0.5649 MB / 460.2 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.452, allocations: 423.9 kB / 460.6 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.262e-05/0.4521, allocations: 7.906 kB / 460.7 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.922e-05/0.4522, allocations: 4 kB / 460.7 MB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/0.4522, allocations: 12 kB / 460.7 MB, free: 3.012 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005659/0.4579, allocations: 2.116 MB / 462.8 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.4593, allocations: 445.7 kB / 463.2 MB, free: 304 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004572/0.4597, allocations: 178.2 kB / 463.4 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001493/0.4599, allocations: 85.55 kB / 463.5 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.546e-05/0.46, allocations: 42.94 kB / 463.5 MB, free: 15.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 3.376e-06/0.46, allocations: 0 / 463.5 MB, free: 15.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001821/0.4619, allocations: 451.5 kB / 464 MB, free: 15.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.4619, allocations: 59.84 kB / 464 MB, free: 15.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.4622, allocations: 161.5 kB / 464.2 MB, free: 15.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.08e-05/0.4623, allocations: 25.7 kB / 464.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/0.4625, allocations: 306.4 kB / 464.5 MB, free: 14.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.4627, allocations: 161.6 kB / 464.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.636e-05/0.4627, allocations: 0 / 464.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4628, allocations: 330.8 kB / 465 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004301/0.4633, allocations: 149.3 kB / 465.1 MB, free: 14.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005341/0.4638, allocations: 250.7 kB / 465.4 MB, free: 14.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008983/0.4648, allocations: 196.7 kB / 465.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.4648, allocations: 0 / 465.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002105/0.4669, allocations: 0.5345 MB / 466.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.4669, allocations: 5.438 kB / 466.1 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.467, allocations: 8 kB / 466.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004621/0.4674, allocations: 84.75 kB / 466.2 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.4685, allocations: 103.9 kB / 466.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002965/0.4715, allocations: 1.741 MB / 468 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005887/0.4721, allocations: 39.58 kB / 468.1 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.771e-05/0.4722, allocations: 24.06 kB / 468.1 MB, free: 11.17 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001465/0.4723, allocations: 41.61 kB / 468.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.4724, allocations: 23.72 kB / 468.2 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/0.4744, allocations: 0.5305 MB / 468.7 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.4744, allocations: 5.219 kB / 468.7 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.4745, allocations: 4 kB / 468.7 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.4745, allocations: 3.984 kB / 468.7 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002633/0.4771, allocations: 1.09 MB / 469.8 MB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.4772, allocations: 0 / 469.8 MB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007641/0.4779, allocations: 83.89 kB / 469.9 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004771/0.4784, allocations: 84.75 kB / 470 MB, free: 9.227 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.333e-05/0.4785, allocations: 5.594 kB / 470 MB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002774/0.4813, allocations: 1.736 MB / 471.7 MB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/0.4813, allocations: 3.984 kB / 471.7 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002149/0.4835, allocations: 0.7527 MB / 472.5 MB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.4836, allocations: 117.5 kB / 472.6 MB, free: 6.461 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.046e-05/0.4837, allocations: 4.125 kB / 472.6 MB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004828/0.4842, allocations: 15.98 kB / 472.6 MB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.4843, allocations: 28.39 kB / 472.6 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.69e-05/0.4844, allocations: 12 kB / 472.6 MB, free: 6.402 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000154/0.4845, allocations: 128.3 kB / 472.8 MB, free: 6.277 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008723/0.4854, allocations: 147.4 kB / 472.9 MB, free: 6.133 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (capacitor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 43 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003134/0.4857, allocations: 140 kB / 473 MB, free: 5.988 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.4872, allocations: 0.5189 MB / 473.6 MB, free: 5.461 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4872, allocations: 0 / 473.6 MB, free: 5.461 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000795/0.488, allocations: 340.8 kB / 473.9 MB, free: 5.117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.4884, allocations: 15.98 kB / 473.9 MB, free: 5.102 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004877/0.4933, allocations: 1.115 MB / 475 MB, free: 3.953 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007295/0.4941, allocations: 0.8671 MB / 475.9 MB, free: 3.059 MB / 362.7 MB Notification: Performance of SimCode: time 1.213e-06/0.4941, allocations: 0 / 475.9 MB, free: 3.059 MB / 362.7 MB Notification: Performance of Templates: time 0.01394/0.508, allocations: 6.732 MB / 482.6 MB, free: 12.36 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches