Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008804/0.0008803, allocations: 95.61 kB / 17.3 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009436/0.0009438, allocations: 175.6 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.998/1.998, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004739/0.0004743, allocations: 16 kB / 281.4 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1624, allocations: 47.58 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.01083/0.1733, allocations: 4.875 MB / 333.8 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005858/0.1792, allocations: 1.447 MB / 335.3 MB, free: 13.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.1809, allocations: 27.81 kB / 335.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.182, allocations: 162.6 kB / 335.5 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00183/0.1839, allocations: 150.7 kB / 335.6 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001926/0.1858, allocations: 343.6 kB / 335.9 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002759/0.1886, allocations: 1.06 MB / 337 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.1899, allocations: 427.4 kB / 337.4 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000946/0.1909, allocations: 330.2 kB / 337.7 MB, free: 10.92 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008733/0.1918, allocations: 369.6 kB / 338.1 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002344/0.1921, allocations: 44 kB / 338.1 MB, free: 10.51 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003662/0.1925, allocations: 51.98 kB / 338.2 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002528/0.1927, allocations: 159.1 kB / 338.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007747/0.1935, allocations: 474.7 kB / 338.8 MB, free: 9.832 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001891/0.1954, allocations: 1.004 MB / 339.8 MB, free: 8.824 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.1955, allocations: 0 / 339.8 MB, free: 8.824 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.689e-06/0.1955, allocations: 0 / 339.8 MB, free: 8.824 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.896e-05/0.1956, allocations: 0 / 339.8 MB, free: 8.824 MB / 286.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.004152/0.1997, allocations: 1.138 MB / 341 MB, free: 7.633 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001052/0.1999, allocations: 12.02 kB / 341 MB, free: 7.621 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005949/0.2005, allocations: 130.4 kB / 341.1 MB, free: 7.492 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/0.2024, allocations: 0.6069 MB / 341.7 MB, free: 6.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.975e-05/0.2025, allocations: 77.94 kB / 341.8 MB, free: 6.766 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002128/0.2027, allocations: 99.91 kB / 341.9 MB, free: 6.668 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002433/0.2052, allocations: 1.035 MB / 342.9 MB, free: 5.508 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.4e-05/0.2052, allocations: 7.938 kB / 342.9 MB, free: 5.5 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.2053, allocations: 44 kB / 343 MB, free: 5.457 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.774e-05/0.2054, allocations: 24 kB / 343 MB, free: 5.434 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.2068, allocations: 0.5695 MB / 343.6 MB, free: 4.863 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007821/0.2146, allocations: 5.524 MB / 349.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007396/0.2154, allocations: 241 kB / 349.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003765/0.2158, allocations: 157.6 kB / 349.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002856/0.2161, allocations: 93.09 kB / 349.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.536e-05/0.2162, allocations: 34.5 kB / 349.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 4.408e-06/0.2162, allocations: 0 / 349.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.005476/0.2217, allocations: 1.768 MB / 351.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.744e-05/0.2218, allocations: 89.05 kB / 351.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009666/0.2228, allocations: 0.6373 MB / 352.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/0.2228, allocations: 29.7 kB / 352.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005453/0.2234, allocations: 0.6026 MB / 352.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.2236, allocations: 150 kB / 352.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.2237, allocations: 61.69 kB / 352.9 MB, free: 11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.224, allocations: 386.8 kB / 353.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003668/0.2244, allocations: 161.9 kB / 353.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007008/0.2251, allocations: 0.501 MB / 354 MB, free: 9.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.2262, allocations: 0.7103 MB / 354.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.2262, allocations: 4 kB / 354.7 MB, free: 8.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001242/0.2275, allocations: 0.7269 MB / 355.4 MB, free: 8.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.2275, allocations: 15.94 kB / 355.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.2275, allocations: 12 kB / 355.4 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.094e-05/0.2276, allocations: 16 kB / 355.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006286/0.2282, allocations: 200.2 kB / 355.6 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.948e-05/0.2282, allocations: 35.78 kB / 355.7 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/0.2286, allocations: 32 kB / 355.7 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.987e-05/0.2287, allocations: 43.98 kB / 355.8 MB, free: 7.832 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.0003335/0.229, allocations: 225.5 kB / 356 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.2291, allocations: 78.97 kB / 356 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001527/0.2293, allocations: 78.53 kB / 356.1 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.086e-06/0.2293, allocations: 8 kB / 356.1 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.2293, allocations: 3.938 kB / 356.1 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.2293, allocations: 3.938 kB / 356.1 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0025/0.2318, allocations: 1.356 MB / 357.5 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.2319, allocations: 4.156 kB / 357.5 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004483/0.2323, allocations: 111.9 kB / 357.6 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/0.2323, allocations: 4 kB / 357.6 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.2324, allocations: 8 kB / 357.6 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.696e-06/0.2324, allocations: 11.92 kB / 357.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.2324, allocations: 3.938 kB / 357.6 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.2337, allocations: 0.7202 MB / 358.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.2338, allocations: 144.1 kB / 358.5 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.121e-05/0.2339, allocations: 16.03 kB / 358.5 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.2342, allocations: 27.92 kB / 358.5 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.997e-05/0.2343, allocations: 31.91 kB / 358.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.2343, allocations: 15.98 kB / 358.6 MB, free: 4.855 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005359/0.2349, allocations: 423 kB / 359 MB, free: 4.445 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2349, allocations: 0 / 359 MB, free: 4.445 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007382/0.2356, allocations: 136 kB / 359.1 MB, free: 4.312 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.0001561/0.2358, allocations: 111.2 kB / 359.2 MB, free: 4.191 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008684/0.2367, allocations: 449.7 kB / 359.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2367, allocations: 0 / 359.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.237, allocations: 165.7 kB / 359.8 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007413/0.2377, allocations: 83.27 kB / 359.9 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003262/0.241, allocations: 2.206 MB / 362.1 MB, free: 1.266 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008978/0.2419, allocations: 1.004 MB / 363.1 MB, free: 240 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003266/0.2423, allocations: 94 kB / 363.2 MB, free: 144 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.2424, allocations: 63.41 kB / 363.3 MB, free: 80 kB / 302.1 MB Notification: Performance of SimCode: time 8.91e-07/0.2424, allocations: 0 / 363.3 MB, free: 80 kB / 302.1 MB Notification: Performance of Templates: time 0.01162/0.2541, allocations: 4.628 MB / 367.9 MB, free: 11.45 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches