Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001582/0.001582, allocations: 114.7 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001518/0.001518, allocations: 204.5 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.00151, allocations: 56.47 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1442, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007306/0.1516, allocations: 5.394 MB / 364.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00425/0.1559, allocations: 1.523 MB / 365.8 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001229/0.1571, allocations: 23.88 kB / 365.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006607/0.1579, allocations: 217.8 kB / 366 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008209/0.1587, allocations: 194 kB / 366.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.1598, allocations: 415.3 kB / 366.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00133/0.1611, allocations: 1.13 MB / 367.8 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007024/0.1619, allocations: 480.2 kB / 368.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006266/0.1625, allocations: 406.3 kB / 368.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004719/0.163, allocations: 437.4 kB / 369.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.1631, allocations: 87.94 kB / 369.2 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002195/0.1633, allocations: 99.98 kB / 369.2 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001728/0.1635, allocations: 215.1 kB / 369.5 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004223/0.1639, allocations: 0.4971 MB / 370 MB, free: 2.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001218/0.1652, allocations: 1.156 MB / 371.1 MB, free: 1.055 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1652, allocations: 0 / 371.1 MB, free: 1.055 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1652, allocations: 0 / 371.1 MB, free: 1.055 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.1652, allocations: 4 kB / 371.1 MB, free: 1.051 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.2893/0.4545, allocations: 1.306 MB / 372.4 MB, free: 19.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.4546, allocations: 9.5 kB / 372.4 MB, free: 19.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004292/0.455, allocations: 143.8 kB / 372.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/0.4562, allocations: 0.6636 MB / 373.2 MB, free: 19.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.896e-05/0.4563, allocations: 77 kB / 373.3 MB, free: 19.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.4565, allocations: 100.3 kB / 373.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.4582, allocations: 1.029 MB / 374.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.592e-05/0.4583, allocations: 10.34 kB / 374.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-05/0.4583, allocations: 47.34 kB / 374.5 MB, free: 19.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.313e-05/0.4584, allocations: 26.91 kB / 374.5 MB, free: 19.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.4597, allocations: 0.553 MB / 375.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004613/0.4643, allocations: 5.493 MB / 380.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000567/0.4649, allocations: 229.3 kB / 380.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002988/0.4652, allocations: 157.9 kB / 380.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001283/0.4653, allocations: 86.8 kB / 381 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.4654, allocations: 35.94 kB / 381.1 MB, free: 14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.184e-06/0.4654, allocations: 1.188 kB / 381.1 MB, free: 14 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003682/0.4691, allocations: 1.725 MB / 382.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.4691, allocations: 80.67 kB / 382.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000745/0.4699, allocations: 0.6363 MB / 383.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.4699, allocations: 31.98 kB / 383.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/0.4702, allocations: 0.599 MB / 384.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.418e-05/0.4703, allocations: 148.8 kB / 384.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.4705, allocations: 138.9 kB / 384.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4707, allocations: 391.9 kB / 384.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.471, allocations: 153.7 kB / 384.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004691/0.4714, allocations: 0.4977 MB / 385.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007826/0.4722, allocations: 0.6931 MB / 386.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.4722, allocations: 7.719 kB / 386.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001295/0.4735, allocations: 0.7082 MB / 386.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.4736, allocations: 10.73 kB / 386.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.33e-05/0.4736, allocations: 20.19 kB / 386.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.923e-05/0.4737, allocations: 16.41 kB / 386.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006798/0.4743, allocations: 195.5 kB / 387.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-05/0.4744, allocations: 31.22 kB / 387.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.4748, allocations: 33.23 kB / 387.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.537e-05/0.4748, allocations: 37.42 kB / 387.2 MB, free: 9.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002807/0.4751, allocations: 234.5 kB / 387.4 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/0.4753, allocations: 73.81 kB / 387.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.4754, allocations: 78.12 kB / 387.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.4754, allocations: 6.766 kB / 387.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.4754, allocations: 0 / 387.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.4755, allocations: 10.33 kB / 387.6 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.4776, allocations: 1.314 MB / 388.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.4776, allocations: 2.625 kB / 388.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004624/0.4781, allocations: 102.9 kB / 389 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.4781, allocations: 3.406 kB / 389 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.68e-05/0.4781, allocations: 10.38 kB / 389 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.4781, allocations: 3.188 kB / 389 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4782, allocations: 6.906 kB / 389 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009257/0.4791, allocations: 0.7029 MB / 389.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.4792, allocations: 142.6 kB / 389.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.363e-05/0.4793, allocations: 11.05 kB / 389.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/0.4796, allocations: 29.88 kB / 389.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.329e-05/0.4797, allocations: 35.25 kB / 389.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.4797, allocations: 10.05 kB / 390 MB, free: 8.332 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005539/0.4803, allocations: 426.1 kB / 390.4 MB, free: 8.152 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4803, allocations: 0 / 390.4 MB, free: 8.152 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000731/0.481, allocations: 137.7 kB / 390.5 MB, free: 8.137 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001361/0.4812, allocations: 111.5 kB / 390.6 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007922/0.482, allocations: 433.4 kB / 391 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.482, allocations: 0 / 391 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002912/0.4823, allocations: 156.1 kB / 391.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005406/0.4828, allocations: 79.52 kB / 391.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002554/0.4854, allocations: 1.654 MB / 392.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.4859, allocations: 1.002 MB / 393.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000282/0.4862, allocations: 94.72 kB / 394 MB, free: 6.102 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.4864, allocations: 64.83 kB / 394.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4864, allocations: 0 / 394.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of Templates: time 0.01136/0.4978, allocations: 4.948 MB / 399 MB, free: 3.988 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches