Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008912/0.0008911, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001157/0.001157, allocations: 206.1 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.622/1.622, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.0003742, allocations: 8 kB / 307.7 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1541, allocations: 51.52 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002689/0.1568, allocations: 1.858 MB / 361.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.1581, allocations: 0.6001 MB / 361.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.741e-05/0.1582, allocations: 4 kB / 361.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.1583, allocations: 19.84 kB / 361.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.512e-05/0.1584, allocations: 35.7 kB / 361.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002256/0.1586, allocations: 55.88 kB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001894/0.1588, allocations: 151.2 kB / 362 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.159, allocations: 49.45 kB / 362 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.1592, allocations: 55.84 kB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.1593, allocations: 55.7 kB / 362.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.278e-05/0.1593, allocations: 12 kB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.631e-05/0.1594, allocations: 19.92 kB / 362.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.761e-05/0.1595, allocations: 23.86 kB / 362.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.462e-05/0.1596, allocations: 89.38 kB / 362.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002108/0.1598, allocations: 163.6 kB / 362.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1598, allocations: 0 / 362.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1598, allocations: 0 / 362.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.1598, allocations: 0 / 362.4 MB, free: 10.09 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006291/0.1604, allocations: 435.2 kB / 362.8 MB, free: 9.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.1605, allocations: 8.031 kB / 362.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002259/0.1607, allocations: 24.83 kB / 362.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.161, allocations: 204 kB / 363.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.161, allocations: 12.61 kB / 363.1 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.161, allocations: 8.375 kB / 363.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.1613, allocations: 123.8 kB / 363.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.1613, allocations: 0 / 363.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.1613, allocations: 8 kB / 363.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.1613, allocations: 4 kB / 363.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.1615, allocations: 80.61 kB / 363.3 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009037/0.1625, allocations: 0.6096 MB / 363.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003021/0.1628, allocations: 86.62 kB / 364 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.768e-05/0.1629, allocations: 40.91 kB / 364 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.1629, allocations: 0 / 364 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/0.1629, allocations: 34.56 kB / 364.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.1629, allocations: 0 / 364.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008346/0.1638, allocations: 263.4 kB / 364.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.1638, allocations: 59.34 kB / 364.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.164, allocations: 152.8 kB / 364.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.164, allocations: 25.7 kB / 364.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.605e-05/0.1641, allocations: 131.9 kB / 364.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.1641, allocations: 19.66 kB / 364.7 MB, free: 7.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.761e-05/0.1642, allocations: 21.66 kB / 364.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1643, allocations: 318.8 kB / 365 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.774e-05/0.1644, allocations: 31.92 kB / 365.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.923e-05/0.1645, allocations: 50.55 kB / 365.1 MB, free: 7.105 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.1646, allocations: 66.5 kB / 365.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1646, allocations: 4 kB / 365.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003048/0.1649, allocations: 146.2 kB / 365.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.165, allocations: 4 kB / 365.3 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.165, allocations: 0 / 365.3 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002079/0.1652, allocations: 36.84 kB / 365.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.805e-05/0.1653, allocations: 16.05 kB / 365.4 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/0.1669, allocations: 1.521 MB / 366.9 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.323e-05/0.167, allocations: 7.906 kB / 366.9 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.167, allocations: 48 / 366.9 MB, free: 5.156 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001619/0.1672, allocations: 129.8 kB / 367 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.771e-05/0.1672, allocations: 11.84 kB / 367.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.817e-05/0.1673, allocations: 20.77 kB / 367.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1673, allocations: 0 / 367.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.205e-06/0.1673, allocations: 0 / 367.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1673, allocations: 0 / 367.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002909/0.1676, allocations: 213.6 kB / 367.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1676, allocations: 0 / 367.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.983e-05/0.1677, allocations: 11.92 kB / 367.3 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/0.1678, allocations: 36.78 kB / 367.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.1678, allocations: 0 / 367.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/0.1691, allocations: 1.51 MB / 368.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1691, allocations: 4.062 kB / 368.9 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003582/0.1695, allocations: 216.2 kB / 369.1 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.868e-05/0.1696, allocations: 88.95 kB / 369.1 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.1696, allocations: 3.984 kB / 369.2 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.1697, allocations: 12 kB / 369.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.109e-05/0.1698, allocations: 8.172 kB / 369.2 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.1698, allocations: 4 kB / 369.2 MB, free: 2.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001171/0.1699, allocations: 110.2 kB / 369.3 MB, free: 2.562 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1699, allocations: 0 / 369.3 MB, free: 2.562 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003979/0.1703, allocations: 43.84 kB / 369.3 MB, free: 2.52 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001552/0.1705, allocations: 107.2 kB / 369.4 MB, free: 2.406 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004659/0.171, allocations: 194.5 kB / 369.6 MB, free: 2.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.171, allocations: 0 / 369.6 MB, free: 2.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002064/0.1712, allocations: 150.7 kB / 369.8 MB, free: 2.043 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.1715, allocations: 24.05 kB / 369.8 MB, free: 2.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006431/0.1722, allocations: 362.5 kB / 370.1 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.1725, allocations: 0.7118 MB / 370.9 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.726e-05/0.1726, allocations: 12.47 kB / 370.9 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.182e-05/0.1726, allocations: 11.44 kB / 370.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1727, allocations: 0 / 370.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of Templates: time 0.2342/0.4068, allocations: 1.337 MB / 372.2 MB, free: 18.55 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches