Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009826/0.0009826, allocations: 180.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007664/0.0007665, allocations: 88.47 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003259/0.0003259, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2525, allocations: 47.57 MB / 374.6 MB, free: 45.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.003954/0.2565, allocations: 4.585 MB / 379.1 MB, free: 41.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.2586, allocations: 1.409 MB / 380.5 MB, free: 40.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003627/0.259, allocations: 23.75 kB / 380.6 MB, free: 40.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003074/0.2593, allocations: 162.9 kB / 380.7 MB, free: 40.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003414/0.2596, allocations: 154 kB / 380.9 MB, free: 40.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004931/0.2601, allocations: 294.2 kB / 381.2 MB, free: 40.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007843/0.2609, allocations: 0.9962 MB / 382.2 MB, free: 39.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004656/0.2614, allocations: 346.1 kB / 382.5 MB, free: 39.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003425/0.2618, allocations: 324.6 kB / 382.8 MB, free: 39.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003108/0.2621, allocations: 349.1 kB / 383.2 MB, free: 38.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.103e-05/0.2622, allocations: 40.34 kB / 383.2 MB, free: 38.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.2623, allocations: 51.36 kB / 383.2 MB, free: 38.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.247e-05/0.2624, allocations: 150.4 kB / 383.4 MB, free: 38.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.2626, allocations: 202.6 kB / 383.6 MB, free: 38.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005281/0.2631, allocations: 0.772 MB / 384.4 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2632, allocations: 0 / 384.4 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2632, allocations: 1.344 kB / 384.4 MB, free: 38.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.2632, allocations: 0 / 384.4 MB, free: 38.01 MB / 298.7 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.001435/0.2646, allocations: 1.141 MB / 385.5 MB, free: 37.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.2647, allocations: 9.344 kB / 385.5 MB, free: 37.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.2648, allocations: 124.8 kB / 385.6 MB, free: 37.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007937/0.2656, allocations: 0.5845 MB / 386.2 MB, free: 36.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.146e-05/0.2657, allocations: 73.3 kB / 386.3 MB, free: 36.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.2659, allocations: 101.2 kB / 386.4 MB, free: 36.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/0.2674, allocations: 1.021 MB / 387.4 MB, free: 35.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.094e-05/0.2674, allocations: 6.906 kB / 387.4 MB, free: 35.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-05/0.2675, allocations: 43.62 kB / 387.5 MB, free: 35.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/0.2675, allocations: 26.66 kB / 387.5 MB, free: 35.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000923/0.2684, allocations: 0.5617 MB / 388.1 MB, free: 35.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003316/0.2718, allocations: 5.533 MB / 393.6 MB, free: 29.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004559/0.2722, allocations: 232.9 kB / 393.8 MB, free: 29.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.2725, allocations: 161.7 kB / 394 MB, free: 28.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.2726, allocations: 93.05 kB / 394.1 MB, free: 28.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.2727, allocations: 34.84 kB / 394.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.354e-06/0.2727, allocations: 0 / 394.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003268/0.2759, allocations: 1.774 MB / 395.9 MB, free: 26.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.276, allocations: 81.11 kB / 395.9 MB, free: 26.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004908/0.2765, allocations: 0.6294 MB / 396.6 MB, free: 26.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.2765, allocations: 37.7 kB / 396.6 MB, free: 26.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/0.2767, allocations: 0.5949 MB / 397.2 MB, free: 25.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.083e-05/0.2768, allocations: 153.8 kB / 397.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.047e-05/0.2768, allocations: 12 kB / 397.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.192e-05/0.2769, allocations: 386.8 kB / 397.7 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.2772, allocations: 153.9 kB / 397.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003756/0.2776, allocations: 0.501 MB / 398.4 MB, free: 24.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.2779, allocations: 230.2 kB / 398.6 MB, free: 23.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.278, allocations: 4 kB / 398.6 MB, free: 23.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009196/0.2789, allocations: 0.7289 MB / 399.4 MB, free: 23.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.2789, allocations: 15.94 kB / 399.4 MB, free: 23.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.2789, allocations: 12 kB / 399.4 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.279, allocations: 16 kB / 399.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005783/0.2795, allocations: 207.6 kB / 399.6 MB, free: 22.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.2796, allocations: 28.17 kB / 399.6 MB, free: 22.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.2799, allocations: 39.95 kB / 399.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.76e-05/0.28, allocations: 39.98 kB / 399.7 MB, free: 22.77 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002253/0.2802, allocations: 225.5 kB / 399.9 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-05/0.2803, allocations: 75.06 kB / 400 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.911e-05/0.2804, allocations: 78.53 kB / 400.1 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.2804, allocations: 7.938 kB / 400.1 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.2804, allocations: 7.938 kB / 400.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.2804, allocations: 0 / 400.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.2821, allocations: 1.349 MB / 401.4 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.2821, allocations: 4 kB / 401.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004438/0.2826, allocations: 112 kB / 401.6 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.2826, allocations: 4 kB / 401.6 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/0.2826, allocations: 8 kB / 401.6 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.2826, allocations: 4 kB / 401.6 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2826, allocations: 7.922 kB / 401.6 MB, free: 20.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008007/0.2834, allocations: 0.7324 MB / 402.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.721e-05/0.2835, allocations: 136.2 kB / 402.4 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.368e-05/0.2836, allocations: 8 kB / 402.5 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/0.2839, allocations: 36.02 kB / 402.5 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.482e-05/0.284, allocations: 27.91 kB / 402.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.284, allocations: 15.98 kB / 402.5 MB, free: 19.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000335/0.2843, allocations: 419 kB / 402.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2843, allocations: 0 / 402.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005467/0.2849, allocations: 144 kB / 403.1 MB, free: 19.27 MB / 298.7 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 (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.0001066/0.285, allocations: 107.2 kB / 403.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006615/0.2857, allocations: 446.3 kB / 403.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2857, allocations: 0 / 403.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002386/0.2859, allocations: 163.7 kB / 403.8 MB, free: 18.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005025/0.2864, allocations: 79.41 kB / 403.9 MB, free: 18.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.2886, allocations: 2.13 MB / 406 MB, free: 16.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.2889, allocations: 1.004 MB / 407 MB, free: 15.26 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.289, allocations: 71.41 kB / 407.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.289, allocations: 0 / 407.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of Templates: time 0.01026/0.2993, allocations: 9.051 MB / 416.1 MB, free: 6.133 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches