Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 174.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 221.3 MB / 235.5 MB, free: 2.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007771/0.0007771, allocations: 84.12 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.108e-05/2.113e-05, allocations: 4 kB / 343.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08646/0.08649, allocations: 50.41 MB / 394.2 MB, free: 1.871 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2971/0.3836, allocations: 79.31 MB / 473.6 MB, free: 8.266 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/0.384, allocations: 79.78 kB / 473.6 MB, free: 8.191 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01347/0.3974, allocations: 5.143 MB / 478.8 MB, free: 3.031 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3975, allocations: 0 / 478.8 MB, free: 3.031 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.3975, allocations: 8 kB / 478.8 MB, free: 3.023 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.0006954/0.3982, allocations: 0.5458 MB / 479.3 MB, free: 2.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3982, allocations: 16.03 kB / 479.3 MB, free: 2.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.062e-05/0.3983, allocations: 39.52 kB / 479.4 MB, free: 2.379 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002696/0.3986, allocations: 250.6 kB / 479.6 MB, free: 2.094 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.3986, allocations: 24.73 kB / 479.7 MB, free: 2.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.18e-05/0.3987, allocations: 32 kB / 479.7 MB, free: 2.039 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.3992, allocations: 263.7 kB / 479.9 MB, free: 1.773 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3992, allocations: 0 / 479.9 MB, free: 1.773 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.3992, allocations: 12 kB / 480 MB, free: 1.762 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.3992, allocations: 8 kB / 480 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003237/0.3996, allocations: 187 kB / 480.1 MB, free: 1.566 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.4011, allocations: 1.062 MB / 481.2 MB, free: 440 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.4014, allocations: 147 kB / 481.3 MB, free: 284 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/0.4016, allocations: 120.8 kB / 481.5 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.4016, allocations: 0 / 481.5 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.4017, allocations: 38.5 kB / 481.5 MB, free: 112 kB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.132e-06/0.4017, allocations: 0 / 481.5 MB, free: 112 kB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003066/0.402, allocations: 150 kB / 481.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.402, allocations: 55.41 kB / 481.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001915/0.4022, allocations: 190 kB / 481.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.4023, allocations: 33.7 kB / 481.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.4024, allocations: 195.7 kB / 482.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.007e-05/0.4024, allocations: 67.02 kB / 482.2 MB, free: 15.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/0.4025, allocations: 4 kB / 482.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.4026, allocations: 338.8 kB / 482.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.724e-05/0.4027, allocations: 56.56 kB / 482.6 MB, free: 15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.4029, allocations: 130.4 kB / 482.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.403, allocations: 73.22 kB / 482.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.403, allocations: 0 / 482.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003646/0.4034, allocations: 246.6 kB / 483 MB, free: 14.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.4034, allocations: 13.52 kB / 483 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.4034, allocations: 8 kB / 483 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.4034, allocations: 4 kB / 483 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003044/0.4037, allocations: 71.89 kB / 483.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.4038, allocations: 4 kB / 483.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.404, allocations: 35.67 kB / 483.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.404, allocations: 16 kB / 483.2 MB, free: 14.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 7.54e-05/0.4041, allocations: 127.6 kB / 483.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/0.4041, allocations: 15.81 kB / 483.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002864/0.4044, allocations: 178.7 kB / 483.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.4044, allocations: 0 / 483.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.4044, allocations: 4 kB / 483.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4045, allocations: 0 / 483.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006369/0.4051, allocations: 0.5743 MB / 484.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4051, allocations: 0 / 484.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/0.4054, allocations: 59.91 kB / 484.1 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.135e-06/0.4054, allocations: 4 kB / 484.1 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.4055, allocations: 11.95 kB / 484.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.4055, allocations: 0 / 484.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4055, allocations: 0 / 484.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003884/0.4059, allocations: 360.9 kB / 484.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.261e-05/0.4059, allocations: 104.9 kB / 484.6 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.406, allocations: 0 / 484.6 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.4062, allocations: 27.98 kB / 484.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.4062, allocations: 11.98 kB / 484.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.4062, allocations: 8 kB / 484.6 MB, free: 12.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001127/0.4063, allocations: 152.6 kB / 484.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4064, allocations: 0 / 484.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003156/0.4067, allocations: 79.69 kB / 484.9 MB, free: 12.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0001305/0.4068, allocations: 119.6 kB / 485 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002548/0.4071, allocations: 152.2 kB / 485.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4071, allocations: 0 / 485.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.4072, allocations: 71.86 kB / 485.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.4074, allocations: 24.83 kB / 485.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.4085, allocations: 0.7076 MB / 485.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.4088, allocations: 0.7755 MB / 486.7 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.4089, allocations: 18.08 kB / 486.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.769e-05/0.4089, allocations: 23.42 kB / 486.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4089, allocations: 0 / 486.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of Templates: time 0.004438/0.4134, allocations: 1.829 MB / 488.6 MB, free: 8.801 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches