Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001528/0.001528, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.52/1.52, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 50.17 kB / 300.6 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1414, allocations: 49.44 MB / 350 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003563/0.145, allocations: 2.123 MB / 352.2 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009989/0.146, allocations: 0.5492 MB / 352.7 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.1462, allocations: 4 kB / 352.7 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.1463, allocations: 23.78 kB / 352.7 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.55e-05/0.1464, allocations: 47.62 kB / 352.8 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002669/0.1467, allocations: 35.89 kB / 352.8 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001895/0.1469, allocations: 159.3 kB / 353 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.1471, allocations: 53.44 kB / 353 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.1472, allocations: 67.72 kB / 353.1 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.1473, allocations: 67.7 kB / 353.2 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.91e-05/0.1474, allocations: 15.94 kB / 353.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.72e-05/0.1475, allocations: 20 kB / 353.2 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4e-05/0.1475, allocations: 23.92 kB / 353.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.127e-05/0.1476, allocations: 75.59 kB / 353.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.1478, allocations: 167.7 kB / 353.5 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1479, allocations: 0 / 353.5 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1479, allocations: 0 / 353.5 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1479, allocations: 0 / 353.5 MB, free: 0.9648 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006622/0.1485, allocations: 439.1 kB / 353.9 MB, free: 496 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.1486, allocations: 12.03 kB / 353.9 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.1487, allocations: 16.75 kB / 353.9 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000228/0.1489, allocations: 204.1 kB / 354.1 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.149, allocations: 8.609 kB / 354.1 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.149, allocations: 8.375 kB / 354.1 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.1492, allocations: 125 kB / 354.3 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1493, allocations: 0 / 354.3 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.1493, allocations: 4 kB / 354.3 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.1493, allocations: 4 kB / 354.3 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001943/0.1495, allocations: 80.7 kB / 354.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008233/0.1503, allocations: 0.6055 MB / 355 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.1506, allocations: 86.61 kB / 355 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.703e-05/0.1507, allocations: 32.98 kB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.1507, allocations: 3.984 kB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.1508, allocations: 30.56 kB / 355.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.1508, allocations: 3.938 kB / 355.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006871/0.1515, allocations: 259.4 kB / 355.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.1515, allocations: 55.34 kB / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.1517, allocations: 152.5 kB / 355.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.1517, allocations: 29.64 kB / 355.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.166e-05/0.1518, allocations: 128 kB / 355.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.1518, allocations: 19.66 kB / 355.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.811e-05/0.1518, allocations: 25.7 kB / 355.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.152, allocations: 318.8 kB / 356.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.416e-05/0.152, allocations: 19.98 kB / 356.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.972e-05/0.1521, allocations: 42.56 kB / 356.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000139/0.1523, allocations: 78.47 kB / 356.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.1523, allocations: 192 / 356.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002739/0.1525, allocations: 138.3 kB / 356.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1526, allocations: 11.94 kB / 356.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.1526, allocations: 0 / 356.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.1528, allocations: 36.83 kB / 356.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.581e-05/0.1528, allocations: 11.94 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.1543, allocations: 1.689 MB / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.899e-05/0.1544, allocations: 11.92 kB / 358.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.1544, allocations: 0 / 358.1 MB, free: 11.88 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.0001061/0.1546, allocations: 121.8 kB / 358.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.614e-05/0.1546, allocations: 11.84 kB / 358.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.947e-05/0.1546, allocations: 12.78 kB / 358.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1546, allocations: 4 kB / 358.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-06/0.1547, allocations: 0 / 358.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1547, allocations: 3.984 kB / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.1549, allocations: 209.6 kB / 358.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1549, allocations: 0 / 358.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.025e-05/0.1549, allocations: 7.938 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001116/0.155, allocations: 36.83 kB / 358.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/0.1551, allocations: 4 kB / 358.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.1563, allocations: 1.685 MB / 360.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.1563, allocations: 4.031 kB / 360.2 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002918/0.1566, allocations: 216.2 kB / 360.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.365e-05/0.1567, allocations: 81.02 kB / 360.5 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.1567, allocations: 7.938 kB / 360.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.823e-05/0.1568, allocations: 11.98 kB / 360.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.1569, allocations: 3.938 kB / 360.5 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.1569, allocations: 4 kB / 360.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.347e-05/0.157, allocations: 111.2 kB / 360.6 MB, free: 9.125 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.157, allocations: 0 / 360.6 MB, free: 9.125 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003503/0.1573, allocations: 39.84 kB / 360.7 MB, free: 9.086 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.000124/0.1575, allocations: 107.7 kB / 360.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004075/0.1579, allocations: 190.6 kB / 361 MB, free: 8.773 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1579, allocations: 0 / 361 MB, free: 8.773 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.1581, allocations: 158.8 kB / 361.1 MB, free: 8.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.1584, allocations: 19.86 kB / 361.1 MB, free: 8.586 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005309/0.1589, allocations: 279.1 kB / 361.4 MB, free: 8.289 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002747/0.1592, allocations: 0.7118 MB / 362.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.767e-05/0.1592, allocations: 8.438 kB / 362.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.585e-05/0.1593, allocations: 15.42 kB / 362.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of SimCode: time 2.014e-06/0.1593, allocations: 0 / 362.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of Templates: time 0.004336/0.1636, allocations: 1.489 MB / 363.6 MB, free: 6.051 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches