Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 192.4 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.581/1.581, allocations: 229.5 MB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008837/0.0008835, allocations: 100.9 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.000363, allocations: 4 kB / 360.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.303, allocations: 51.41 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005991/0.3091, allocations: 4.635 MB / 416.7 MB, free: 21.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003712/0.3129, allocations: 2.03 MB / 418.7 MB, free: 19.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009979/0.3139, allocations: 23.88 kB / 418.7 MB, free: 19.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00052/0.3145, allocations: 162.6 kB / 418.9 MB, free: 18.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006759/0.3152, allocations: 152.6 kB / 419 MB, free: 18.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009714/0.3162, allocations: 343.7 kB / 419.4 MB, free: 18.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.3173, allocations: 1.068 MB / 420.5 MB, free: 17.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007445/0.3181, allocations: 431.3 kB / 420.9 MB, free: 16.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005757/0.3187, allocations: 334.3 kB / 421.2 MB, free: 16.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004275/0.3191, allocations: 369.5 kB / 421.6 MB, free: 16.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.3193, allocations: 44 kB / 421.6 MB, free: 16.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002176/0.3195, allocations: 59.98 kB / 421.7 MB, free: 16.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.3196, allocations: 159.2 kB / 421.8 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003935/0.32, allocations: 474.7 kB / 422.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009486/0.321, allocations: 1.005 MB / 423.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.321, allocations: 0 / 423.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.321, allocations: 0 / 423.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.3211, allocations: 4 kB / 423.3 MB, free: 14.47 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.001944/0.323, allocations: 1.122 MB / 424.4 MB, free: 13.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.3231, allocations: 8.031 kB / 424.4 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000443/0.3235, allocations: 154.4 kB / 424.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.3246, allocations: 0.6069 MB / 425.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.261e-05/0.3246, allocations: 77.94 kB / 425.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.3248, allocations: 99.91 kB / 425.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002067/0.3269, allocations: 1.034 MB / 426.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.88e-05/0.3269, allocations: 11.94 kB / 426.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.386e-05/0.327, allocations: 44 kB / 426.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.896e-05/0.3271, allocations: 24 kB / 426.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.3287, allocations: 0.5617 MB / 427 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005003/0.3337, allocations: 5.532 MB / 432.6 MB, free: 4.691 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007527/0.3345, allocations: 236.9 kB / 432.8 MB, free: 4.441 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004057/0.3349, allocations: 161.6 kB / 432.9 MB, free: 4.277 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001776/0.3351, allocations: 89.09 kB / 433 MB, free: 4.172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.3351, allocations: 34.56 kB / 433.1 MB, free: 4.129 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 3.086e-06/0.3351, allocations: 0 / 433.1 MB, free: 4.129 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.005038/0.3402, allocations: 1.779 MB / 434.8 MB, free: 2.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.3402, allocations: 85.05 kB / 434.9 MB, free: 2.148 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008317/0.3411, allocations: 0.6294 MB / 435.6 MB, free: 1.512 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.3411, allocations: 33.7 kB / 435.6 MB, free: 1.473 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003703/0.3415, allocations: 0.5987 MB / 436.2 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.3416, allocations: 142 kB / 436.3 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.3417, allocations: 12 kB / 436.3 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.3418, allocations: 394.7 kB / 436.7 MB, free: 324 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004314/0.3423, allocations: 149.9 kB / 436.9 MB, free: 176 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008325/0.3431, allocations: 0.4972 MB / 437.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.3447, allocations: 0.7103 MB / 438.1 MB, free: 14.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.3447, allocations: 4 kB / 438.1 MB, free: 14.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002004/0.3467, allocations: 0.7253 MB / 438.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.46e-05/0.3468, allocations: 15.94 kB / 438.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.67e-05/0.3468, allocations: 12.72 kB / 438.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.472e-05/0.3469, allocations: 20 kB / 438.9 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.3479, allocations: 199.7 kB / 439.1 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.471e-05/0.348, allocations: 23.88 kB / 439.1 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005901/0.3486, allocations: 39.92 kB / 439.1 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.401e-05/0.3487, allocations: 40 kB / 439.2 MB, free: 13.57 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004436/0.3491, allocations: 233.5 kB / 439.4 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.3493, allocations: 78.97 kB / 439.5 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001733/0.3495, allocations: 74.55 kB / 439.5 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.3495, allocations: 8 kB / 439.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.3496, allocations: 3.938 kB / 439.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.3496, allocations: 3.984 kB / 439.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.3528, allocations: 1.359 MB / 440.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.3528, allocations: 0 / 440.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007613/0.3536, allocations: 115.9 kB / 441 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.3536, allocations: 0 / 441 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.845e-05/0.3536, allocations: 16.16 kB / 441 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.983e-06/0.3537, allocations: 3.938 kB / 441 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.3537, allocations: 4 kB / 441 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.3553, allocations: 0.7126 MB / 441.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.3555, allocations: 144.2 kB / 441.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.196e-05/0.3556, allocations: 8 kB / 441.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004936/0.3561, allocations: 31.92 kB / 441.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.3562, allocations: 31.95 kB / 442 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.89e-05/0.3562, allocations: 12 kB / 442 MB, free: 10.6 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007005/0.357, allocations: 423 kB / 442.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.357, allocations: 0 / 442.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001088/0.3581, allocations: 136 kB / 442.5 MB, free: 10.06 MB / 314.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 (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.0002146/0.3583, allocations: 119.1 kB / 442.6 MB, free: 9.934 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.3596, allocations: 454.2 kB / 443.1 MB, free: 9.492 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3596, allocations: 3.938 kB / 443.1 MB, free: 9.488 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004786/0.3601, allocations: 168.1 kB / 443.2 MB, free: 9.324 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.3611, allocations: 67.25 kB / 443.3 MB, free: 9.258 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004405/0.3655, allocations: 2.207 MB / 445.5 MB, free: 7.004 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00083/0.3664, allocations: 1.004 MB / 446.5 MB, free: 5.973 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005237/0.3669, allocations: 90.02 kB / 446.6 MB, free: 5.883 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002159/0.3671, allocations: 59.42 kB / 446.7 MB, free: 5.824 MB / 314.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3672, allocations: 0 / 446.7 MB, free: 5.824 MB / 314.7 MB Notification: Performance of Templates: time 0.01687/0.384, allocations: 4.629 MB / 451.3 MB, free: 1.203 MB / 314.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches