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.001563/0.001563, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001744/0.001744, allocations: 191 kB / 18.63 MB, free: 4.375 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.383/1.383, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 45.89 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08705/0.08807, allocations: 49.44 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003561/0.09168, allocations: 2.115 MB / 353.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008646/0.09257, allocations: 0.557 MB / 354.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.16e-05/0.09266, allocations: 7.938 kB / 354.2 MB, free: 1 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.09279, allocations: 19.8 kB / 354.2 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.684e-05/0.09289, allocations: 47.61 kB / 354.2 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.09311, allocations: 39.89 kB / 354.3 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001895/0.0933, allocations: 163.2 kB / 354.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.09348, allocations: 61.44 kB / 354.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.09361, allocations: 59.78 kB / 354.6 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.09373, allocations: 63.7 kB / 354.6 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.301e-05/0.09377, allocations: 12 kB / 354.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.084e-05/0.09385, allocations: 20 kB / 354.7 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.119e-05/0.09389, allocations: 23.92 kB / 354.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.138e-05/0.09397, allocations: 71.67 kB / 354.7 MB, free: 432 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002265/0.0942, allocations: 167.4 kB / 354.9 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.09422, allocations: 0 / 354.9 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.09423, allocations: 0 / 354.9 MB, free: 264 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.09424, allocations: 4 kB / 354.9 MB, free: 260 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.0006458/0.09489, allocations: 443.1 kB / 355.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.09493, allocations: 15.91 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.09504, allocations: 16.75 kB / 355.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.0953, allocations: 196.2 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.09532, allocations: 8.609 kB / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/0.09535, allocations: 12.38 kB / 355.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002359/0.09559, allocations: 132.9 kB / 355.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.09561, allocations: 0 / 355.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.09563, allocations: 0 / 355.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.09564, allocations: 4 kB / 355.7 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.09581, allocations: 80.66 kB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007721/0.0966, allocations: 0.5978 MB / 356.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/0.09688, allocations: 86.56 kB / 356.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.673e-05/0.09696, allocations: 28.97 kB / 356.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.09699, allocations: 4 kB / 356.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.09703, allocations: 38.56 kB / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.442e-06/0.09703, allocations: 0 / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006713/0.09771, allocations: 255.4 kB / 356.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.09776, allocations: 63.34 kB / 356.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.09789, allocations: 145.8 kB / 357 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.09791, allocations: 25.7 kB / 357 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.091e-05/0.09799, allocations: 124 kB / 357.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.09802, allocations: 19.66 kB / 357.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.17e-05/0.09806, allocations: 21.72 kB / 357.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.09817, allocations: 322.8 kB / 357.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.455e-05/0.09824, allocations: 23.98 kB / 357.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.151e-05/0.09832, allocations: 50.5 kB / 357.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.09846, allocations: 70.55 kB / 357.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.09847, allocations: 0 / 357.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002707/0.09875, allocations: 146.2 kB / 357.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.09877, allocations: 4 kB / 357.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.09878, allocations: 4 kB / 357.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001718/0.09896, allocations: 32.84 kB / 357.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.472e-05/0.09902, allocations: 11.98 kB / 357.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/0.1006, allocations: 1.691 MB / 359.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.818e-05/0.1006, allocations: 7.969 kB / 359.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.1007, allocations: 4 kB / 359.6 MB, free: 11.18 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 9.471e-05/0.1008, allocations: 133.6 kB / 359.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.1008, allocations: 11.84 kB / 359.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.209e-05/0.1008, allocations: 12.72 kB / 359.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.1008, allocations: 0 / 359.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.1008, allocations: 0 / 359.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1009, allocations: 4 kB / 359.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002026/0.1011, allocations: 213.6 kB / 359.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1011, allocations: 0 / 359.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.211e-05/0.1011, allocations: 11.92 kB / 359.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001143/0.1012, allocations: 32.84 kB / 360 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.1013, allocations: 0 / 360 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/0.1025, allocations: 1.685 MB / 361.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1025, allocations: 0 / 361.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.1028, allocations: 220.2 kB / 361.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.424e-05/0.1029, allocations: 85.02 kB / 361.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.1029, allocations: 0 / 361.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.744e-05/0.103, allocations: 4 kB / 362 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.618e-05/0.103, allocations: 12.17 kB / 362 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.103, allocations: 4 kB / 362 MB, free: 8.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.817e-05/0.1031, allocations: 118.1 kB / 362.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1031, allocations: 0 / 362.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003466/0.1035, allocations: 43.84 kB / 362.1 MB, free: 8.367 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.0001097/0.1036, allocations: 99.72 kB / 362.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003847/0.104, allocations: 190.8 kB / 362.4 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.104, allocations: 0 / 362.4 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001903/0.1042, allocations: 154.6 kB / 362.6 MB, free: 7.898 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.1045, allocations: 11.94 kB / 362.6 MB, free: 7.887 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005066/0.105, allocations: 291.9 kB / 362.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.1052, allocations: 0.708 MB / 363.6 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.491e-05/0.1053, allocations: 448 / 363.6 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.219e-05/0.1053, allocations: 15.44 kB / 363.6 MB, free: 6.824 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1053, allocations: 0 / 363.6 MB, free: 6.824 MB / 302.1 MB Notification: Performance of Templates: time 0.003948/0.1093, allocations: 1.502 MB / 365.1 MB, free: 5.332 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 -s gbode -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