Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002323/0.002323, allocations: 99.86 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002463/0.002463, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.537/1.537, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] 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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.792e-05/2.925e-05, allocations: 6.25 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004887/0.004916, allocations: 2.968 MB / 270.3 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.006295, allocations: 0.6776 MB / 271 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.006465, allocations: 15.94 kB / 271 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001937/0.006659, allocations: 51.5 kB / 271 MB, free: 3 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002103/0.006869, allocations: 103 kB / 271.1 MB, free: 2.898 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002997/0.007169, allocations: 91.8 kB / 271.2 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005291/0.007698, allocations: 433.9 kB / 271.6 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.007892, allocations: 80.52 kB / 271.7 MB, free: 2.301 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000353/0.008245, allocations: 231.5 kB / 272 MB, free: 2.074 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.008466, allocations: 115.7 kB / 272.1 MB, free: 1.961 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.456e-05/0.008531, allocations: 32 kB / 272.1 MB, free: 1.93 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.798e-05/0.008599, allocations: 32 kB / 272.1 MB, free: 1.898 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.79e-05/0.008687, allocations: 75.67 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.008853, allocations: 127.7 kB / 272.3 MB, free: 1.699 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005812/0.009434, allocations: 402.7 kB / 272.7 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.009439, allocations: 0 / 272.7 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.00944, allocations: 0 / 272.7 MB, free: 1.305 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.009449, allocations: 11.94 kB / 272.7 MB, free: 1.293 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001416/0.01087, allocations: 0.671 MB / 273.4 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.01091, allocations: 12.02 kB / 273.4 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000129/0.01104, allocations: 64.7 kB / 273.5 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.01145, allocations: 232 kB / 273.7 MB, free: 264 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/0.01149, allocations: 21.03 kB / 273.7 MB, free: 240 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.062e-05/0.01154, allocations: 28.38 kB / 273.8 MB, free: 212 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006754/0.01221, allocations: 404.8 kB / 274.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.01223, allocations: 192 / 274.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.346e-05/0.01226, allocations: 12.38 kB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.01227, allocations: 7.938 kB / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000451/0.01272, allocations: 194.5 kB / 274.4 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.0146, allocations: 0.9266 MB / 275.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005246/0.01512, allocations: 222.7 kB / 275.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002238/0.01534, allocations: 95.64 kB / 275.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.01537, allocations: 8 kB / 275.6 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/0.01541, allocations: 37.39 kB / 275.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.213e-06/0.01541, allocations: 0 / 275.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001437/0.01685, allocations: 400.3 kB / 276 MB, free: 13.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.0169, allocations: 59.34 kB / 276.1 MB, free: 13.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003877/0.01729, allocations: 332.2 kB / 276.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.01732, allocations: 33.7 kB / 276.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/0.01753, allocations: 239.2 kB / 276.7 MB, free: 13.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.525e-05/0.0176, allocations: 75.38 kB / 276.8 MB, free: 13.03 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.0177, allocations: 51.59 kB / 276.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002927/0.018, allocations: 0.5196 MB / 277.3 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.01818, allocations: 64.44 kB / 277.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000212/0.0184, allocations: 108 kB / 277.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/0.01876, allocations: 190.9 kB / 277.7 MB, free: 12.06 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01876, allocations: 0 / 277.7 MB, free: 12.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006578/0.01942, allocations: 313.2 kB / 278 MB, free: 11.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.01943, allocations: 6.812 kB / 278 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.01944, allocations: 4 kB / 278 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004722/0.01991, allocations: 111.3 kB / 278.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001945/0.02011, allocations: 35.92 kB / 278.1 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003633/0.02374, allocations: 3.844 MB / 282 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.02392, allocations: 23.83 kB / 282 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.02394, allocations: 4 kB / 282 MB, free: 7.461 MB / 266.7 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000196/0.02413, allocations: 184.6 kB / 282.2 MB, free: 7.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.994e-05/0.0242, allocations: 35.86 kB / 282.2 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.935e-05/0.02426, allocations: 30.27 kB / 282.3 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.02426, allocations: 0 / 282.3 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.02427, allocations: 4 kB / 282.3 MB, free: 7.203 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.02428, allocations: 7.922 kB / 282.3 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.02552, allocations: 0.653 MB / 282.9 MB, free: 6.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.02552, allocations: 4 kB / 282.9 MB, free: 6.484 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.02565, allocations: 23.98 kB / 282.9 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003796/0.02603, allocations: 103.2 kB / 283 MB, free: 6.352 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.02605, allocations: 7.984 kB / 283.1 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003358/0.02941, allocations: 3.84 MB / 286.9 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.02941, allocations: 0 / 286.9 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006984/0.03011, allocations: 434.7 kB / 287.3 MB, free: 1.805 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.285e-05/0.03015, allocations: 15.86 kB / 287.3 MB, free: 1.789 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.03018, allocations: 8 kB / 287.3 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002471/0.03043, allocations: 32 kB / 287.4 MB, free: 1.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.519e-05/0.0305, allocations: 23.91 kB / 287.4 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.03052, allocations: 4 kB / 287.4 MB, free: 1.723 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000229/0.03075, allocations: 229.1 kB / 287.6 MB, free: 1.496 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03075, allocations: 0 / 287.6 MB, free: 1.496 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004182/0.03117, allocations: 103.8 kB / 287.7 MB, free: 1.395 MB / 266.7 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001458/0.03131, allocations: 107.2 kB / 287.8 MB, free: 1.281 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008823/0.0322, allocations: 0.5378 MB / 288.4 MB, free: 0.707 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.0322, allocations: 4 kB / 288.4 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005546/0.03276, allocations: 459.3 kB / 288.8 MB, free: 220 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.03314, allocations: 44.42 kB / 288.9 MB, free: 176 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009396/0.03408, allocations: 490.8 kB / 289.3 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/0.03424, allocations: 159.5 kB / 289.5 MB, free: 15.49 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.647e-05/0.03434, allocations: 21.94 kB / 289.5 MB, free: 15.47 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.888e-05/0.0344, allocations: 24.48 kB / 289.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of SimCode: time 4.71e-07/0.0344, allocations: 0 / 289.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of Templates: time 0.009048/0.04345, allocations: 3.594 MB / 293.1 MB, free: 11.89 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.551383035024628]