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.001541/0.001541, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001808/0.001809, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.63/1.63, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002606/0.002607, allocations: 67.42 kB / 307 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1524, allocations: 50.55 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004977/0.1574, allocations: 2.156 MB / 359.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.159, allocations: 0.6156 MB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002127/0.1592, allocations: 4 kB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001909/0.1594, allocations: 19.8 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.1596, allocations: 39.62 kB / 360.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000396/0.16, allocations: 59.86 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003597/0.1604, allocations: 159.2 kB / 360.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.1606, allocations: 57.44 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002598/0.1609, allocations: 63.78 kB / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/0.1611, allocations: 71.62 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.356e-05/0.1611, allocations: 12 kB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.1612, allocations: 24 kB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.363e-05/0.1613, allocations: 31.86 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.1614, allocations: 71.67 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003342/0.1618, allocations: 171.7 kB / 361.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.1618, allocations: 4 kB / 361.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1618, allocations: 0 / 361.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1618, allocations: 0 / 361.1 MB, free: 10.49 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.0008592/0.1627, allocations: 443.1 kB / 361.5 MB, free: 10 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.1627, allocations: 8.031 kB / 361.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002397/0.163, allocations: 32.73 kB / 361.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.1633, allocations: 204 kB / 361.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.1633, allocations: 8.609 kB / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.865e-05/0.1634, allocations: 12.38 kB / 361.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/0.1637, allocations: 125.5 kB / 361.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.1637, allocations: 3.938 kB / 361.9 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.1637, allocations: 0 / 361.9 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1638, allocations: 4 kB / 361.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.164, allocations: 80.66 kB / 362 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.165, allocations: 0.6018 MB / 362.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.1654, allocations: 90.55 kB / 362.7 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.887e-05/0.1654, allocations: 28.98 kB / 362.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.1655, allocations: 0 / 362.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.1655, allocations: 42.48 kB / 362.7 MB, free: 8.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.1655, allocations: 0 / 362.7 MB, free: 8.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007633/0.1663, allocations: 255.4 kB / 363 MB, free: 8.355 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.1664, allocations: 55.34 kB / 363 MB, free: 8.289 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001685/0.1665, allocations: 145.8 kB / 363.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.1666, allocations: 33.64 kB / 363.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.1667, allocations: 131.9 kB / 363.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.51e-05/0.1667, allocations: 19.73 kB / 363.4 MB, free: 7.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-05/0.1668, allocations: 25.62 kB / 363.4 MB, free: 7.914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.167, allocations: 322.8 kB / 363.7 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.578e-05/0.167, allocations: 16 kB / 363.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.779e-05/0.1672, allocations: 54.48 kB / 363.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.1673, allocations: 70.55 kB / 363.8 MB, free: 7.434 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1673, allocations: 0 / 363.8 MB, free: 7.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002961/0.1676, allocations: 134.2 kB / 364 MB, free: 7.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1677, allocations: 8.062 kB / 364 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1677, allocations: 0 / 364 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002134/0.1679, allocations: 40.83 kB / 364 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.774e-05/0.168, allocations: 8 kB / 364 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.17, allocations: 1.688 MB / 365.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.595e-05/0.1701, allocations: 7.938 kB / 365.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.1701, allocations: 4 kB / 365.7 MB, free: 5.398 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.0001596/0.1703, allocations: 129.7 kB / 365.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.1704, allocations: 7.906 kB / 365.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.181e-05/0.1704, allocations: 20.7 kB / 365.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.1704, allocations: 4.031 kB / 365.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.1704, allocations: 4 kB / 365.9 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1704, allocations: 0 / 365.9 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003279/0.1708, allocations: 213.5 kB / 366.1 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.1708, allocations: 0 / 366.1 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.604e-05/0.1708, allocations: 4.188 kB / 366.1 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001469/0.171, allocations: 36.83 kB / 366.1 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.171, allocations: 3.938 kB / 366.1 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001688/0.1727, allocations: 1.685 MB / 367.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1727, allocations: 0 / 367.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003787/0.1731, allocations: 212.2 kB / 368 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.426e-05/0.1732, allocations: 85.08 kB / 368.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.1732, allocations: 11.98 kB / 368.1 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.584e-05/0.1733, allocations: 4 kB / 368.1 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.379e-05/0.1734, allocations: 7.984 kB / 368.1 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.1734, allocations: 0 / 368.1 MB, free: 2.746 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001241/0.1735, allocations: 122.7 kB / 368.3 MB, free: 2.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1735, allocations: 0 / 368.3 MB, free: 2.629 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003945/0.1739, allocations: 43.84 kB / 368.3 MB, free: 2.586 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.0001771/0.1741, allocations: 103.2 kB / 368.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005405/0.1747, allocations: 190.6 kB / 368.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1747, allocations: 0 / 368.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000245/0.1749, allocations: 158.7 kB / 368.7 MB, free: 2.109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.1753, allocations: 12.44 kB / 368.8 MB, free: 2.098 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007376/0.176, allocations: 295.9 kB / 369 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.1765, allocations: 0.708 MB / 369.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.598e-05/0.1765, allocations: 8.438 kB / 369.8 MB, free: 1.039 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.368e-05/0.1766, allocations: 11.44 kB / 369.8 MB, free: 1.027 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1766, allocations: 0 / 369.8 MB, free: 1.027 MB / 302.1 MB Notification: Performance of Templates: time 0.2218/0.3983, allocations: 1.483 MB / 371.3 MB, free: 19.5 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.1.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