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.001119/0.001119, allocations: 88.11 kB / 16.31 MB, free: 6.449 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.001526/0.001526, allocations: 186.2 kB / 17.21 MB, free: 6.32 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.561/1.561, allocations: 223.3 MB / 241.2 MB, free: 276 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003911/0.0003915, allocations: 8 kB / 300.8 MB, free: 6.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1378, allocations: 50.42 MB / 351.2 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003455/0.1413, allocations: 1.779 MB / 353 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.1427, allocations: 0.5185 MB / 353.5 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.143, allocations: 4 kB / 353.5 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.1431, allocations: 15.84 kB / 353.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001625/0.1433, allocations: 35.7 kB / 353.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003081/0.1436, allocations: 31.91 kB / 353.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000292/0.1439, allocations: 143.3 kB / 353.8 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.1441, allocations: 53.38 kB / 353.8 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.1443, allocations: 47.8 kB / 353.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.1445, allocations: 55.77 kB / 353.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.1445, allocations: 4 kB / 353.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.869e-05/0.1446, allocations: 16 kB / 353.9 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.164e-05/0.1447, allocations: 19.91 kB / 354 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.44e-05/0.1448, allocations: 53.58 kB / 354 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002233/0.145, allocations: 119.9 kB / 354.1 MB, free: 1.078 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.145, allocations: 0 / 354.1 MB, free: 1.078 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.145, allocations: 8 kB / 354.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.145, allocations: 0 / 354.1 MB, free: 1.07 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.0008971/0.1459, allocations: 415.1 kB / 354.5 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.146, allocations: 8.031 kB / 354.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002379/0.1463, allocations: 23.77 kB / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003327/0.1466, allocations: 198.8 kB / 354.8 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.1466, allocations: 12.17 kB / 354.8 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.1467, allocations: 16 kB / 354.8 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003599/0.147, allocations: 112.5 kB / 354.9 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1471, allocations: 0 / 354.9 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.1471, allocations: 8 kB / 354.9 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.1471, allocations: 3.953 kB / 354.9 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002295/0.1474, allocations: 84.66 kB / 355 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.1485, allocations: 0.6096 MB / 355.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003271/0.1489, allocations: 86.62 kB / 355.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.353e-05/0.149, allocations: 32.97 kB / 355.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.149, allocations: 0 / 355.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/0.1491, allocations: 34.56 kB / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.834e-06/0.1491, allocations: 0 / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0009239/0.15, allocations: 275.3 kB / 356 MB, free: 14.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.435e-05/0.1501, allocations: 55.39 kB / 356.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.1504, allocations: 140.6 kB / 356.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.1504, allocations: 29.7 kB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.1505, allocations: 123.9 kB / 356.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.74e-05/0.1506, allocations: 27.64 kB / 356.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.624e-06/0.1506, allocations: 3.938 kB / 356.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002111/0.1508, allocations: 326.7 kB / 356.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.317e-05/0.1509, allocations: 31.98 kB / 356.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.151, allocations: 42.56 kB / 356.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.983e-05/0.1511, allocations: 24 kB / 356.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1512, allocations: 0 / 356.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003478/0.1515, allocations: 146.3 kB / 357 MB, free: 13.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.1516, allocations: 4 kB / 357 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1516, allocations: 0 / 357 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002425/0.1518, allocations: 40.8 kB / 357 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.499e-05/0.1519, allocations: 12.23 kB / 357 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002125/0.154, allocations: 1.513 MB / 358.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.892e-05/0.1542, allocations: 7.938 kB / 358.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.1542, allocations: 4 kB / 358.5 MB, free: 12.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001567/0.1543, allocations: 121.8 kB / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.258e-05/0.1544, allocations: 19.75 kB / 358.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.894e-05/0.1544, allocations: 8.719 kB / 358.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1545, allocations: 8.062 kB / 358.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.1545, allocations: 0 / 358.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1545, allocations: 0 / 358.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002807/0.1548, allocations: 209.6 kB / 358.9 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1548, allocations: 3.938 kB / 358.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-05/0.1548, allocations: 7.984 kB / 358.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001276/0.155, allocations: 36.98 kB / 358.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.155, allocations: 4.125 kB / 359 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001328/0.1563, allocations: 1.514 MB / 360.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1563, allocations: 4.062 kB / 360.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003148/0.1567, allocations: 216.2 kB / 360.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.548e-05/0.1567, allocations: 85.02 kB / 360.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.1567, allocations: 3.984 kB / 360.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.1568, allocations: 12 kB / 360.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.87e-05/0.1569, allocations: 7.938 kB / 360.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.1569, allocations: 8 kB / 360.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001147/0.157, allocations: 103.3 kB / 360.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.157, allocations: 0 / 360.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003928/0.1574, allocations: 43.84 kB / 360.9 MB, free: 9.613 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001349/0.1576, allocations: 99.19 kB / 361 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004183/0.158, allocations: 194.6 kB / 361.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.158, allocations: 0 / 361.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002323/0.1583, allocations: 158.6 kB / 361.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.1586, allocations: 16.11 kB / 361.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006269/0.1592, allocations: 353.1 kB / 361.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.1596, allocations: 0.7082 MB / 362.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.714e-05/0.1597, allocations: 8.438 kB / 362.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.1597, allocations: 7.438 kB / 362.5 MB, free: 8 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1597, allocations: 0 / 362.5 MB, free: 8 MB / 302.1 MB Notification: Performance of Templates: time 0.004816/0.1645, allocations: 1.314 MB / 363.8 MB, free: 6.695 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