Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001849/0.001849, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002487/0.002487, allocations: 211.6 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.522/1.522, allocations: 230.6 MB / 257.5 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 51.92 kB / 378.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2674, allocations: 53.35 MB / 431.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003742/0.2712, allocations: 2.089 MB / 433.7 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.2723, allocations: 0.5844 MB / 434.2 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.2724, allocations: 4 kB / 434.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.2725, allocations: 19.78 kB / 434.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.2727, allocations: 47.56 kB / 434.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.2729, allocations: 51.88 kB / 434.4 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000218/0.2731, allocations: 159.2 kB / 434.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.2733, allocations: 43.38 kB / 434.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.2735, allocations: 71.72 kB / 434.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001345/0.2736, allocations: 75.69 kB / 434.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.2736, allocations: 15.94 kB / 434.7 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.309e-05/0.2737, allocations: 20 kB / 434.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.752e-05/0.2737, allocations: 31.86 kB / 434.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.019e-05/0.2738, allocations: 59.73 kB / 434.8 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002572/0.2741, allocations: 165.9 kB / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2741, allocations: 0 / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2741, allocations: 0 / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.2741, allocations: 0 / 435 MB, free: 3.305 MB / 334.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.0006737/0.2748, allocations: 373.8 kB / 435.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.2748, allocations: 8.031 kB / 435.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001971/0.275, allocations: 28.83 kB / 435.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.2753, allocations: 158.3 kB / 435.5 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.2753, allocations: 8.609 kB / 435.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.2753, allocations: 12.38 kB / 435.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002764/0.2756, allocations: 145.5 kB / 435.7 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.2756, allocations: 0 / 435.7 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.948e-05/0.2756, allocations: 8 kB / 435.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.2756, allocations: 4 kB / 435.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.2758, allocations: 84.59 kB / 435.8 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007869/0.2766, allocations: 439 kB / 436.2 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.2769, allocations: 82.56 kB / 436.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.128e-05/0.277, allocations: 28.97 kB / 436.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.277, allocations: 0 / 436.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.2771, allocations: 46.44 kB / 436.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.2771, allocations: 0 / 436.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006982/0.2778, allocations: 178.5 kB / 436.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.2778, allocations: 51.41 kB / 436.6 MB, free: 1.531 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.278, allocations: 163.9 kB / 436.8 MB, free: 1.363 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.278, allocations: 25.7 kB / 436.8 MB, free: 1.332 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.813e-05/0.2781, allocations: 128.1 kB / 436.9 MB, free: 1.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.2781, allocations: 23.78 kB / 436.9 MB, free: 1.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.577e-05/0.2781, allocations: 21.72 kB / 437 MB, free: 1.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.2783, allocations: 318.8 kB / 437.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.866e-05/0.2784, allocations: 27.98 kB / 437.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.242e-05/0.2784, allocations: 42.56 kB / 437.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.2786, allocations: 74.48 kB / 437.4 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2786, allocations: 192 / 437.4 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000305/0.2789, allocations: 134.3 kB / 437.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.2789, allocations: 15.88 kB / 437.6 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2789, allocations: 0 / 437.6 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001975/0.2791, allocations: 44.88 kB / 437.6 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.649e-05/0.2792, allocations: 11.98 kB / 437.6 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.2808, allocations: 1.553 MB / 439.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.531e-05/0.2809, allocations: 8.016 kB / 439.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.2809, allocations: 8.25 kB / 439.2 MB, free: 14.79 MB / 350.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.0001134/0.281, allocations: 121.8 kB / 439.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.791e-05/0.2811, allocations: 15.89 kB / 439.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.053e-05/0.2811, allocations: 8.719 kB / 439.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2811, allocations: 4 kB / 439.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.2811, allocations: 4 kB / 439.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.2811, allocations: 0 / 439.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.2813, allocations: 141.3 kB / 439.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2813, allocations: 0 / 439.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.898e-05/0.2813, allocations: 4 kB / 439.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001411/0.2815, allocations: 44.77 kB / 439.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.2815, allocations: 3.938 kB / 439.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001689/0.2832, allocations: 1.555 MB / 441.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.2832, allocations: 0 / 441.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003717/0.2835, allocations: 220.4 kB / 441.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.234e-05/0.2835, allocations: 15.83 kB / 441.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.2836, allocations: 0 / 441.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.2837, allocations: 7.984 kB / 441.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/0.2837, allocations: 7.984 kB / 441.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.2837, allocations: 4 kB / 441.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.2838, allocations: 110.3 kB / 441.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2838, allocations: 0 / 441.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003796/0.2842, allocations: 43.89 kB / 441.5 MB, free: 12.33 MB / 350.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.0001361/0.2843, allocations: 99.23 kB / 441.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004496/0.2848, allocations: 182.5 kB / 441.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.2848, allocations: 8 kB / 441.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.285, allocations: 150.6 kB / 441.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.2853, allocations: 19.88 kB / 441.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006324/0.2859, allocations: 304.8 kB / 442.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.2861, allocations: 94.27 kB / 442.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.611e-05/0.2861, allocations: 8.438 kB / 442.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.2861, allocations: 7.438 kB / 442.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2861, allocations: 3.938 kB / 442.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of Templates: time 0.005173/0.2913, allocations: 1.605 MB / 444 MB, free: 9.809 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.718914631288499]