Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 91.86 kB / 16.65 MB, free: 6.59 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.001309/0.001309, allocations: 182.8 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.475/1.475, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003074/0.0003074, allocations: 11.94 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1443, allocations: 50.41 MB / 351.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003742/0.1481, allocations: 2.658 MB / 354.5 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.1496, allocations: 0.6817 MB / 355.2 MB, free: 356 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.1498, allocations: 4 kB / 355.2 MB, free: 352 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001972/0.15, allocations: 39.69 kB / 355.2 MB, free: 312 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002098/0.1503, allocations: 91.19 kB / 355.3 MB, free: 220 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003163/0.1506, allocations: 71.92 kB / 355.4 MB, free: 148 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005604/0.1512, allocations: 394.2 kB / 355.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002732/0.1514, allocations: 95.58 kB / 355.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.1517, allocations: 135.5 kB / 356 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/0.1519, allocations: 143.2 kB / 356.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.152, allocations: 20 kB / 356.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.817e-05/0.152, allocations: 16 kB / 356.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.353e-05/0.1521, allocations: 59.75 kB / 356.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001876/0.1523, allocations: 176.9 kB / 356.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003949/0.1527, allocations: 358.9 kB / 356.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.1527, allocations: 7.938 kB / 356.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1527, allocations: 0 / 356.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.1528, allocations: 0 / 356.7 MB, free: 14.75 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001131/0.1539, allocations: 0.5925 MB / 357.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.154, allocations: 8.031 kB / 357.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.838e-05/0.154, allocations: 36.56 kB / 357.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003144/0.1544, allocations: 275.6 kB / 357.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.1544, allocations: 24.94 kB / 357.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.478e-05/0.1544, allocations: 28.38 kB / 357.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005426/0.155, allocations: 273 kB / 358 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.155, allocations: 0 / 358 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.1551, allocations: 12 kB / 358 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.1551, allocations: 8 kB / 358 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005031/0.1556, allocations: 234.1 kB / 358.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.1574, allocations: 0.9872 MB / 359.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006343/0.158, allocations: 311.1 kB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.1583, allocations: 116.8 kB / 359.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.1584, allocations: 0 / 359.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.1584, allocations: 38.56 kB / 359.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.132e-06/0.1584, allocations: 0 / 359.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001406/0.1598, allocations: 0.586 MB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.1599, allocations: 55.41 kB / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002859/0.1602, allocations: 262.5 kB / 360.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.7e-05/0.1602, allocations: 33.64 kB / 360.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.1604, allocations: 183.9 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.934e-05/0.1604, allocations: 67 kB / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.807e-05/0.1605, allocations: 33.7 kB / 360.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1607, allocations: 334.8 kB / 361.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.1609, allocations: 80.42 kB / 361.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.1611, allocations: 124.3 kB / 361.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004646/0.1616, allocations: 198.5 kB / 361.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1616, allocations: 0 / 361.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007346/0.1623, allocations: 342.7 kB / 361.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.1624, allocations: 8 kB / 361.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.1624, allocations: 0 / 361.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003455/0.1627, allocations: 81.66 kB / 362 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.1629, allocations: 39.98 kB / 362 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00266/0.1656, allocations: 2.847 MB / 364.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.1658, allocations: 27.83 kB / 364.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.1659, allocations: 4 kB / 364.9 MB, free: 5.973 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001803/0.1661, allocations: 141.8 kB / 365.1 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.14e-05/0.1661, allocations: 31.72 kB / 365.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.105e-05/0.1662, allocations: 26.17 kB / 365.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.81e-06/0.1662, allocations: 4 kB / 365.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.1662, allocations: 7.875 kB / 365.1 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1662, allocations: 3.984 kB / 365.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.1674, allocations: 0.6988 MB / 365.8 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1674, allocations: 0 / 365.8 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001362/0.1675, allocations: 35.97 kB / 365.9 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001869/0.1677, allocations: 77.61 kB / 365.9 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.1677, allocations: 0 / 365.9 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/0.1701, allocations: 2.835 MB / 368.8 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1701, allocations: 4 kB / 368.8 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006913/0.1708, allocations: 390 kB / 369.2 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.599e-05/0.1709, allocations: 112.7 kB / 369.3 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/0.1709, allocations: 4 kB / 369.3 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.1712, allocations: 35.97 kB / 369.3 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.561e-05/0.1713, allocations: 23.91 kB / 369.3 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.889e-05/0.1713, allocations: 16 kB / 369.4 MB, free: 1.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001968/0.1715, allocations: 182 kB / 369.5 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1715, allocations: 0 / 369.5 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004063/0.1719, allocations: 95.75 kB / 369.6 MB, free: 0.8906 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000151/0.1721, allocations: 107.2 kB / 369.7 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009397/0.173, allocations: 455.5 kB / 370.2 MB, free: 316 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.1731, allocations: 8.125 kB / 370.2 MB, free: 308 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2269/0.3999, allocations: 353.8 kB / 370.5 MB, free: 24.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006817/0.4007, allocations: 52.59 kB / 370.6 MB, free: 24.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.4017, allocations: 0.6312 MB / 371.2 MB, free: 24.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/0.402, allocations: 0.7667 MB / 372 MB, free: 23.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.4021, allocations: 21.62 kB / 372 MB, free: 23.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.877e-05/0.4022, allocations: 19.17 kB / 372 MB, free: 23.51 MB / 302.1 MB Notification: Performance of SimCode: time 1.203e-06/0.4022, allocations: 0 / 372 MB, free: 23.51 MB / 302.1 MB Notification: Performance of Templates: time 0.009318/0.4115, allocations: 3.42 MB / 375.4 MB, free: 23.38 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches