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.001872/0.001872, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.002285/0.002285, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.629/1.629, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001238/0.001239, allocations: 51.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1183, allocations: 46.64 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006423/0.1247, allocations: 5.347 MB / 334.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.1275, allocations: 1.462 MB / 335.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003445/0.1279, allocations: 31.88 kB / 335.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004396/0.1283, allocations: 217.7 kB / 335.8 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000463/0.1288, allocations: 198 kB / 336 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006538/0.1295, allocations: 391.4 kB / 336.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009733/0.1305, allocations: 1.119 MB / 337.5 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006064/0.1311, allocations: 484.2 kB / 337.9 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004027/0.1315, allocations: 410.2 kB / 338.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000399/0.1319, allocations: 429.6 kB / 338.8 MB, free: 9.633 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.132, allocations: 84 kB / 338.8 MB, free: 9.551 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001623/0.1322, allocations: 99.94 kB / 338.9 MB, free: 9.453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.1323, allocations: 203.2 kB / 339.1 MB, free: 9.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003825/0.1327, allocations: 0.5009 MB / 339.6 MB, free: 8.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.1338, allocations: 1.148 MB / 340.8 MB, free: 7.598 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1338, allocations: 0 / 340.8 MB, free: 7.598 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1338, allocations: 0 / 340.8 MB, free: 7.598 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.1339, allocations: 0 / 340.8 MB, free: 7.598 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.001875/0.1357, allocations: 1.317 MB / 342.1 MB, free: 6.227 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1358, allocations: 11.89 kB / 342.1 MB, free: 6.215 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.136, allocations: 122.5 kB / 342.2 MB, free: 6.094 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.137, allocations: 0.6575 MB / 342.9 MB, free: 5.395 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.019e-05/0.1371, allocations: 73.94 kB / 343 MB, free: 5.324 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.1372, allocations: 100 kB / 343.1 MB, free: 5.227 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.1387, allocations: 1.023 MB / 344.1 MB, free: 4.078 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.212e-05/0.1388, allocations: 15.88 kB / 344.1 MB, free: 4.062 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.94e-05/0.1388, allocations: 40 kB / 344.1 MB, free: 4.023 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.1389, allocations: 28 kB / 344.2 MB, free: 3.996 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.14, allocations: 0.5617 MB / 344.7 MB, free: 3.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005149/0.1451, allocations: 5.493 MB / 350.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006207/0.1458, allocations: 221.1 kB / 350.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003171/0.1461, allocations: 169.5 kB / 350.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001634/0.1463, allocations: 89.11 kB / 350.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.1463, allocations: 30.56 kB / 350.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.016e-06/0.1464, allocations: 0 / 350.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003903/0.1503, allocations: 1.702 MB / 352.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/0.1503, allocations: 92.97 kB / 352.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007623/0.1511, allocations: 0.6333 MB / 353.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.1512, allocations: 33.7 kB / 353.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004187/0.1516, allocations: 0.5948 MB / 353.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.1517, allocations: 153.9 kB / 353.9 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/0.1519, allocations: 138.5 kB / 354.1 MB, free: 9.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1521, allocations: 382.8 kB / 354.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002891/0.1524, allocations: 153.9 kB / 354.6 MB, free: 9.074 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005136/0.1529, allocations: 0.4894 MB / 355.1 MB, free: 8.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009155/0.1538, allocations: 0.6952 MB / 355.8 MB, free: 7.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.1539, allocations: 8 kB / 355.8 MB, free: 7.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001126/0.155, allocations: 0.7035 MB / 356.5 MB, free: 6.848 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.155, allocations: 15.94 kB / 356.5 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/0.155, allocations: 12 kB / 356.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.946e-05/0.1551, allocations: 16 kB / 356.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006523/0.1557, allocations: 200.1 kB / 356.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.684e-05/0.1558, allocations: 35.84 kB / 356.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.1562, allocations: 32 kB / 356.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.573e-05/0.1562, allocations: 39.98 kB / 356.8 MB, free: 6.504 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.0002965/0.1565, allocations: 233.4 kB / 357.1 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.1566, allocations: 79.05 kB / 357.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.1567, allocations: 74.53 kB / 357.2 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1568, allocations: 4 kB / 357.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.954e-06/0.1568, allocations: 3.938 kB / 357.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.1568, allocations: 4 kB / 357.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.1588, allocations: 1.311 MB / 358.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1588, allocations: 0 / 358.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004701/0.1593, allocations: 107.8 kB / 358.6 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.1593, allocations: 4 kB / 358.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.061e-05/0.1594, allocations: 15.94 kB / 358.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.214e-06/0.1594, allocations: 7.984 kB / 358.7 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1594, allocations: 4.156 kB / 358.7 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009366/0.1603, allocations: 0.7045 MB / 359.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.1605, allocations: 140.1 kB / 359.5 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.273e-05/0.1605, allocations: 16.03 kB / 359.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002975/0.1608, allocations: 19.98 kB / 359.5 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.1609, allocations: 31.91 kB / 359.6 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.1609, allocations: 15.98 kB / 359.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004496/0.1614, allocations: 419 kB / 360 MB, free: 3.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1614, allocations: 0 / 360 MB, free: 3.195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006424/0.1621, allocations: 140 kB / 360.1 MB, free: 3.059 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.0001332/0.1622, allocations: 107.2 kB / 360.2 MB, free: 2.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007632/0.163, allocations: 442.2 kB / 360.7 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.163, allocations: 0 / 360.7 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002694/0.1633, allocations: 163.8 kB / 360.8 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005281/0.1638, allocations: 74.42 kB / 360.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.1664, allocations: 1.651 MB / 362.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.1669, allocations: 1 MB / 363.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002339/0.1672, allocations: 98 kB / 363.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.1673, allocations: 63.41 kB / 363.7 MB, free: 15.4 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1673, allocations: 0 / 363.7 MB, free: 15.4 MB / 318.1 MB Notification: Performance of Templates: time 0.01037/0.1777, allocations: 4.923 MB / 368.6 MB, free: 10.48 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches