Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009953/0.0009951, allocations: 89.03 kB / 16.65 MB, free: 6.586 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.001026/0.001026, allocations: 180.2 kB / 17.56 MB, free: 6.203 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.56/1.56, allocations: 223.3 MB / 241.6 MB, free: 252 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.0002787, allocations: 4 kB / 301.4 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1349, allocations: 50.41 MB / 351.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003279/0.1382, allocations: 2.553 MB / 354.4 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.1393, allocations: 0.6661 MB / 355 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.1394, allocations: 4 kB / 355 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000176/0.1396, allocations: 51.56 kB / 355.1 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.1398, allocations: 71.38 kB / 355.2 MB, free: 380 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.14, allocations: 75.94 kB / 355.2 MB, free: 304 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.1404, allocations: 362.5 kB / 355.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002549/0.1407, allocations: 136.7 kB / 355.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.1409, allocations: 119.6 kB / 355.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.1411, allocations: 135.3 kB / 356 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.147e-05/0.1411, allocations: 16 kB / 356 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.111e-05/0.1412, allocations: 16 kB / 356 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.596e-05/0.1412, allocations: 59.75 kB / 356.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.1414, allocations: 172.9 kB / 356.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003354/0.1417, allocations: 354.8 kB / 356.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1418, allocations: 0 / 356.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1418, allocations: 0 / 356.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.1418, allocations: 0 / 356.6 MB, free: 14.94 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008781/0.1427, allocations: 0.5576 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.1427, allocations: 12.03 kB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.074e-05/0.1428, allocations: 32.56 kB / 357.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.1431, allocations: 263.7 kB / 357.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.1432, allocations: 32.97 kB / 357.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.758e-05/0.1432, allocations: 36.36 kB / 357.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000557/0.1438, allocations: 278.4 kB / 357.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1438, allocations: 0 / 357.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.1439, allocations: 12 kB / 357.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1439, allocations: 8 kB / 357.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004771/0.1444, allocations: 222.5 kB / 358 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001494/0.1459, allocations: 0.9908 MB / 359 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003293/0.1462, allocations: 162.6 kB / 359.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.1464, allocations: 89.06 kB / 359.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.1464, allocations: 3.906 kB / 359.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.1465, allocations: 38.56 kB / 359.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.1465, allocations: 0 / 359.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005686/0.147, allocations: 225.3 kB / 359.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/0.1471, allocations: 55.41 kB / 359.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.1473, allocations: 203 kB / 359.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.1474, allocations: 37.64 kB / 359.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.1475, allocations: 188 kB / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.809e-05/0.1475, allocations: 67.08 kB / 360.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.096e-05/0.1476, allocations: 33.64 kB / 360.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1477, allocations: 330.8 kB / 360.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.1479, allocations: 67.95 kB / 360.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000255/0.1482, allocations: 118 kB / 360.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.1485, allocations: 197.8 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1486, allocations: 0 / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004643/0.149, allocations: 261 kB / 361 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.149, allocations: 8 kB / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1491, allocations: 0 / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1491, allocations: 4 kB / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.1494, allocations: 63.91 kB / 361.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.1494, allocations: 4 kB / 361.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.1496, allocations: 31.89 kB / 361.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.1496, allocations: 12 kB / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001323/0.1497, allocations: 141.7 kB / 361.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-05/0.1498, allocations: 19.72 kB / 361.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004385/0.1502, allocations: 206.2 kB / 361.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1502, allocations: 0 / 361.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1502, allocations: 0 / 361.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.1503, allocations: 7.984 kB / 361.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003755/0.1506, allocations: 317.3 kB / 361.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1506, allocations: 3.938 kB / 361.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002652/0.1509, allocations: 55.97 kB / 361.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1509, allocations: 0 / 361.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.151, allocations: 7.984 kB / 361.9 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.151, allocations: 4 kB / 361.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.151, allocations: 0 / 361.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006239/0.1516, allocations: 367 kB / 362.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.038e-05/0.1517, allocations: 92.92 kB / 362.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.916e-05/0.1517, allocations: 4.062 kB / 362.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.1519, allocations: 19.98 kB / 362.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.1519, allocations: 20 kB / 362.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.152, allocations: 8 kB / 362.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.1521, allocations: 148.6 kB / 362.5 MB, free: 8.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1521, allocations: 0 / 362.5 MB, free: 8.582 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003197/0.1524, allocations: 75.69 kB / 362.6 MB, free: 8.508 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0001508/0.1526, allocations: 102.6 kB / 362.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000422/0.153, allocations: 179.7 kB / 362.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.153, allocations: 0 / 362.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.1532, allocations: 90.41 kB / 363 MB, free: 8.137 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.1536, allocations: 28.83 kB / 363 MB, free: 8.109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.1551, allocations: 1.053 MB / 364.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/0.1556, allocations: 0.7715 MB / 364.8 MB, free: 6.227 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.589e-05/0.1557, allocations: 25.94 kB / 364.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.337e-05/0.1557, allocations: 15.44 kB / 364.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1558, allocations: 0 / 364.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of Templates: time 0.005278/0.161, allocations: 1.841 MB / 366.7 MB, free: 4.363 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches