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.0008911/0.0008912, allocations: 92.2 kB / 17.31 MB, free: 6.023 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.0009613/0.0009613, allocations: 175.8 kB / 18.21 MB, free: 5.414 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.275/1.275, allocations: 223.3 MB / 242.3 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002298/0.0002298, allocations: 11.94 kB / 302.1 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07499/0.07524, allocations: 50.41 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002037/0.07731, allocations: 1.829 MB / 354.3 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007463/0.07807, allocations: 0.5455 MB / 354.9 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.989e-05/0.07815, allocations: 4 kB / 354.9 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.665e-05/0.07825, allocations: 15.84 kB / 354.9 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.661e-05/0.07833, allocations: 39.7 kB / 354.9 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001551/0.07849, allocations: 27.97 kB / 354.9 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001663/0.07867, allocations: 147.3 kB / 355.1 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.07881, allocations: 53.44 kB / 355.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.796e-05/0.07891, allocations: 55.72 kB / 355.2 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.898e-05/0.07902, allocations: 55.72 kB / 355.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.07905, allocations: 8 kB / 355.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.162e-05/0.07911, allocations: 15.98 kB / 355.3 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.694e-05/0.07915, allocations: 23.91 kB / 355.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.637e-05/0.07923, allocations: 85.38 kB / 355.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.07938, allocations: 119.9 kB / 355.5 MB, free: 432 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.07939, allocations: 8 kB / 355.5 MB, free: 424 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.0794, allocations: 7.938 kB / 355.5 MB, free: 416 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.406e-06/0.07941, allocations: 0 / 355.5 MB, free: 416 kB / 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.000525/0.07994, allocations: 415.3 kB / 355.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.07998, allocations: 8.031 kB / 355.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.735e-05/0.08007, allocations: 20.75 kB / 355.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001923/0.08027, allocations: 196.1 kB / 356.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.0803, allocations: 20.59 kB / 356.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.08033, allocations: 8.375 kB / 356.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.08057, allocations: 124.7 kB / 356.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.08059, allocations: 0 / 356.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.08062, allocations: 11.94 kB / 356.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.08063, allocations: 0 / 356.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.08083, allocations: 84.66 kB / 356.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007878/0.08162, allocations: 0.6095 MB / 357 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/0.08191, allocations: 90.56 kB / 357.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.319e-05/0.082, allocations: 36.97 kB / 357.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.08202, allocations: 0 / 357.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.08205, allocations: 30.56 kB / 357.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.08206, allocations: 0 / 357.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006852/0.08275, allocations: 271.4 kB / 357.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/0.08279, allocations: 55.34 kB / 357.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.08291, allocations: 144.6 kB / 357.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.08293, allocations: 29.7 kB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.367e-05/0.083, allocations: 123.9 kB / 357.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.925e-05/0.08303, allocations: 19.73 kB / 357.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.08306, allocations: 21.66 kB / 357.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.052e-05/0.08316, allocations: 326.8 kB / 358.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.746e-05/0.08323, allocations: 19.94 kB / 358.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.753e-05/0.08332, allocations: 46.55 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.08347, allocations: 74.56 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.08348, allocations: 0 / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002905/0.08378, allocations: 146.2 kB / 358.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.0838, allocations: 8 kB / 358.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.08381, allocations: 0 / 358.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001691/0.08399, allocations: 40.89 kB / 358.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.476e-05/0.08405, allocations: 8 kB / 358.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.08539, allocations: 1.518 MB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.883e-05/0.08548, allocations: 15.88 kB / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.0855, allocations: 4 kB / 360 MB, free: 11.49 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 8.347e-05/0.08559, allocations: 121.9 kB / 360.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.339e-05/0.08562, allocations: 7.906 kB / 360.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.194e-05/0.08565, allocations: 12.72 kB / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.08566, allocations: 7.922 kB / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.08567, allocations: 0 / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.08568, allocations: 4 kB / 360.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000203/0.08588, allocations: 205.6 kB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.08589, allocations: 3.938 kB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.089e-05/0.08594, allocations: 4 kB / 360.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001226/0.08607, allocations: 40.83 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.08609, allocations: 0 / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.08724, allocations: 1.514 MB / 361.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.08726, allocations: 0 / 361.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.08757, allocations: 228.2 kB / 362.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.566e-05/0.08761, allocations: 81.02 kB / 362.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.08763, allocations: 8.125 kB / 362.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.08775, allocations: 11.98 kB / 362.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.184e-05/0.08779, allocations: 7.938 kB / 362.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.0878, allocations: 0 / 362.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.257e-05/0.08788, allocations: 113.8 kB / 362.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08789, allocations: 4 kB / 362.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003597/0.08826, allocations: 43.84 kB / 362.4 MB, free: 8.859 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 8.419e-05/0.08835, allocations: 103.1 kB / 362.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003468/0.0887, allocations: 186.7 kB / 362.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.08871, allocations: 0 / 362.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002037/0.08892, allocations: 162.8 kB / 362.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.08919, allocations: 8 kB / 362.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004824/0.08968, allocations: 395.9 kB / 363.2 MB, free: 7.953 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002231/0.08992, allocations: 0.7083 MB / 363.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.529e-05/0.08995, allocations: 15.42 kB / 364 MB, free: 7.207 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.08996, allocations: 0 / 364 MB, free: 7.207 MB / 302.1 MB Notification: Performance of Templates: time 0.00317/0.09313, allocations: 1.874 MB / 365.8 MB, free: 5.336 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/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