Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001042/0.001042, allocations: 96.33 kB / 16.31 MB, free: 5.992 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.001121/0.001121, allocations: 182.2 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 223.2 MB / 241.1 MB, free: 5.352 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002568/0.0002568, allocations: 8.625 kB / 300.7 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1057, allocations: 50.43 MB / 351.1 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004772/0.1105, allocations: 4.422 MB / 355.6 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002874/0.1134, allocations: 1.419 MB / 357 MB, free: 5.816 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006517/0.1141, allocations: 23.88 kB / 357 MB, free: 5.793 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002646/0.1144, allocations: 111 kB / 357.1 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007459/0.1151, allocations: 235.1 kB / 357.3 MB, free: 5.453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007331/0.1159, allocations: 287.6 kB / 357.6 MB, free: 5.172 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008488/0.1167, allocations: 0.7688 MB / 358.4 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004641/0.1172, allocations: 350.2 kB / 358.7 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002979/0.1175, allocations: 314.5 kB / 359 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003248/0.1179, allocations: 349.9 kB / 359.4 MB, free: 3.387 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.796e-05/0.1179, allocations: 43.94 kB / 359.4 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.1181, allocations: 51.98 kB / 359.5 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.1182, allocations: 147.3 kB / 359.6 MB, free: 3.148 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001435/0.1183, allocations: 201.1 kB / 359.8 MB, free: 2.945 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006148/0.119, allocations: 0.7752 MB / 360.6 MB, free: 2.168 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.119, allocations: 0 / 360.6 MB, free: 2.168 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.119, allocations: 0 / 360.6 MB, free: 2.168 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.119, allocations: 0 / 360.6 MB, free: 2.168 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.001604/0.1206, allocations: 1.13 MB / 361.7 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.1207, allocations: 12.03 kB / 361.7 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.1208, allocations: 130.4 kB / 361.9 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008325/0.1217, allocations: 0.5879 MB / 362.5 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.479e-05/0.1217, allocations: 74 kB / 362.5 MB, free: 144 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.1219, allocations: 99.91 kB / 362.6 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.1233, allocations: 1.019 MB / 363.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.1234, allocations: 11.94 kB / 363.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-05/0.1235, allocations: 44 kB / 363.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.1235, allocations: 24 kB / 363.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.1246, allocations: 0.5616 MB / 364.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004366/0.1289, allocations: 5.524 MB / 369.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.1295, allocations: 232.9 kB / 370 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001753/0.1297, allocations: 89.09 kB / 370.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.1297, allocations: 42.55 kB / 370.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.863e-06/0.1297, allocations: 4 kB / 370.2 MB, free: 8.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.003544/0.1332, allocations: 1.72 MB / 371.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.1333, allocations: 85.11 kB / 372 MB, free: 6.121 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006215/0.1339, allocations: 0.6255 MB / 372.6 MB, free: 5.484 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.134, allocations: 37.7 kB / 372.6 MB, free: 5.441 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003913/0.1344, allocations: 0.6026 MB / 373.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.503e-05/0.1345, allocations: 134 kB / 373.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.833e-05/0.1345, allocations: 16 kB / 373.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.1347, allocations: 382.8 kB / 373.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003021/0.135, allocations: 165.8 kB / 373.9 MB, free: 4.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005146/0.1355, allocations: 0.4894 MB / 374.4 MB, free: 3.484 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003914/0.1359, allocations: 235.6 kB / 374.6 MB, free: 3.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1359, allocations: 0 / 374.6 MB, free: 3.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001081/0.137, allocations: 0.7239 MB / 375.4 MB, free: 2.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.1371, allocations: 15.94 kB / 375.4 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.1371, allocations: 12 kB / 375.4 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.972e-05/0.1371, allocations: 19.98 kB / 375.4 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006102/0.1377, allocations: 187.7 kB / 375.6 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.398e-05/0.1378, allocations: 28.23 kB / 375.6 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.1381, allocations: 40 kB / 375.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.1382, allocations: 43.98 kB / 375.7 MB, free: 2.188 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 (94): * Single equations (assignments): 94 * 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.0002876/0.1385, allocations: 221.5 kB / 375.9 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.1386, allocations: 71.06 kB / 376 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.1387, allocations: 78.48 kB / 376.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.1387, allocations: 8 kB / 376.1 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.1387, allocations: 4 kB / 376.1 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1388, allocations: 0 / 376.1 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.1408, allocations: 1.3 MB / 377.4 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1408, allocations: 0 / 377.4 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004528/0.1413, allocations: 103.9 kB / 377.5 MB, free: 348 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.717e-06/0.1413, allocations: 7.984 kB / 377.5 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.1414, allocations: 8 kB / 377.5 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.1414, allocations: 4 kB / 377.5 MB, free: 328 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.1414, allocations: 7.984 kB / 377.5 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.1424, allocations: 0.7085 MB / 378.2 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.1425, allocations: 148.2 kB / 378.4 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.1427, allocations: 8 kB / 378.4 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.143, allocations: 27.98 kB / 378.4 MB, free: 15.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.324e-05/0.143, allocations: 19.97 kB / 378.4 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.1431, allocations: 11.98 kB / 378.4 MB, free: 15.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000437/0.1435, allocations: 415 kB / 378.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1435, allocations: 4 kB / 378.8 MB, free: 14.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005909/0.1441, allocations: 140 kB / 379 MB, free: 14.8 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (38): * Single equations (assignments): 38 * 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.0001515/0.1443, allocations: 107.1 kB / 379.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007294/0.145, allocations: 438.9 kB / 379.5 MB, free: 14.26 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.145, allocations: 0 / 379.5 MB, free: 14.26 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002866/0.1453, allocations: 157.8 kB / 379.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.1457, allocations: 75.48 kB / 379.7 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.1487, allocations: 2.044 MB / 381.8 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000636/0.1494, allocations: 1.023 MB / 382.8 MB, free: 10.9 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002703/0.1496, allocations: 93.95 kB / 382.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.1498, allocations: 67.41 kB / 383 MB, free: 10.74 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1498, allocations: 0 / 383 MB, free: 10.74 MB / 318.1 MB Notification: Performance of Templates: time 0.00997/0.1598, allocations: 4.489 MB / 387.4 MB, free: 6.27 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches