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.0008105/0.0008105, allocations: 84 kB / 21.43 MB, free: 3.129 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.003539/0.003539, allocations: 146.6 kB / 24.68 MB, free: 9.426 MB / 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 0.8076/0.8076, allocations: 173.4 MB / 201.2 MB, free: 9.074 MB / 186.7 MB " [Timeout remaining time 179] 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.022e-06/1.022e-06, allocations: 0 / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.479e-05/1.581e-05, allocations: 6.281 kB / 319.7 MB, free: 5.836 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00241/0.002426, allocations: 2.761 MB / 322.5 MB, free: 3.055 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006375/0.003064, allocations: 0.6738 MB / 323.1 MB, free: 2.375 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.8e-05/0.003152, allocations: 7.938 kB / 323.1 MB, free: 2.367 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.751e-05/0.003249, allocations: 51.48 kB / 323.2 MB, free: 2.316 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.003353, allocations: 107 kB / 323.3 MB, free: 2.211 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.003512, allocations: 91.86 kB / 323.4 MB, free: 2.121 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002384/0.00375, allocations: 429.8 kB / 323.8 MB, free: 1.699 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.00387, allocations: 76.53 kB / 323.9 MB, free: 1.621 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.004034, allocations: 231.5 kB / 324.1 MB, free: 1.395 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.824e-05/0.004133, allocations: 119.7 kB / 324.2 MB, free: 1.277 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.709e-05/0.00417, allocations: 32 kB / 324.3 MB, free: 1.246 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.642e-05/0.004196, allocations: 32 kB / 324.3 MB, free: 1.215 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.909e-05/0.004235, allocations: 79.67 kB / 324.4 MB, free: 1.137 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.682e-05/0.004302, allocations: 119.7 kB / 324.5 MB, free: 1.02 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004961/0.004798, allocations: 398.8 kB / 324.9 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.472e-06/0.0048, allocations: 0 / 324.9 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.004801, allocations: 4 kB / 324.9 MB, free: 0.625 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.004805, allocations: 0 / 324.9 MB, free: 0.625 MB / 282.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.0005416/0.005346, allocations: 0.5559 MB / 325.4 MB, free: 40 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.66e-05/0.005373, allocations: 16.02 kB / 325.5 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.579e-05/0.005429, allocations: 40.94 kB / 325.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.005644, allocations: 225 kB / 325.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.00566, allocations: 17.03 kB / 325.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.005682, allocations: 32.31 kB / 325.8 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.006019, allocations: 424.8 kB / 326.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.006028, allocations: 192 / 326.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.006045, allocations: 12.12 kB / 326.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.00605, allocations: 8 kB / 326.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.006311, allocations: 214.5 kB / 326.4 MB, free: 15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008334/0.007145, allocations: 0.814 MB / 327.2 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.007432, allocations: 208.4 kB / 327.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.007544, allocations: 92.81 kB / 327.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.007557, allocations: 4 kB / 327.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.007574, allocations: 38.56 kB / 327.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.794e-06/0.007576, allocations: 7.984 kB / 327.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006249/0.008201, allocations: 403.2 kB / 328 MB, free: 13.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.008228, allocations: 55.41 kB / 328 MB, free: 13.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.008375, allocations: 249.7 kB / 328.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.00839, allocations: 29.7 kB / 328.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.581e-05/0.008466, allocations: 188.5 kB / 328.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.457e-05/0.008501, allocations: 75.36 kB / 328.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.024e-05/0.008551, allocations: 45.94 kB / 328.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.238e-05/0.008623, allocations: 326.8 kB / 328.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.008727, allocations: 76.42 kB / 329 MB, free: 12.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.008843, allocations: 111.4 kB / 329.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.009053, allocations: 191.1 kB / 329.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.009055, allocations: 0 / 329.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003532/0.009408, allocations: 315 kB / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/0.009418, allocations: 4 kB / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.009422, allocations: 0 / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001587/0.009581, allocations: 81.55 kB / 329.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.191e-05/0.009673, allocations: 35.97 kB / 329.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.01126, allocations: 2.787 MB / 332.5 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.806e-05/0.01134, allocations: 23.81 kB / 332.5 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.01135, allocations: 8 kB / 332.5 MB, free: 8.516 MB / 298.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 8.864e-05/0.01144, allocations: 141.9 kB / 332.7 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.689e-05/0.01147, allocations: 27.84 kB / 332.7 MB, free: 8.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.174e-05/0.01149, allocations: 30.28 kB / 332.7 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.62e-07/0.01149, allocations: 3.938 kB / 332.7 MB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.01149, allocations: 7.938 kB / 332.7 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.0115, allocations: 3.984 kB / 332.7 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005277/0.01203, allocations: 0.5734 MB / 333.3 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.01203, allocations: 0 / 333.3 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.907e-05/0.01209, allocations: 31.91 kB / 333.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000108/0.01219, allocations: 77.61 kB / 333.4 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.0122, allocations: 4 kB / 333.4 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.0134, allocations: 2.772 MB / 336.2 MB, free: 4.586 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.01341, allocations: 11.92 kB / 336.2 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003184/0.01372, allocations: 369.6 kB / 336.6 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.315e-05/0.01375, allocations: 31.86 kB / 336.6 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.01376, allocations: 0 / 336.6 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.01387, allocations: 31.97 kB / 336.6 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.01392, allocations: 31.83 kB / 336.7 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.01392, allocations: 8 kB / 336.7 MB, free: 4.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.685e-05/0.01402, allocations: 177.2 kB / 336.8 MB, free: 3.918 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01402, allocations: 0 / 336.8 MB, free: 3.918 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002201/0.01424, allocations: 99.78 kB / 336.9 MB, free: 3.82 MB / 298.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 8.4e-05/0.01433, allocations: 99.25 kB / 337 MB, free: 3.715 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004198/0.01475, allocations: 433.1 kB / 337.4 MB, free: 3.262 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.01475, allocations: 4 kB / 337.5 MB, free: 3.258 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002046/0.01495, allocations: 341.1 kB / 337.8 MB, free: 2.898 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002153/0.01517, allocations: 44.58 kB / 337.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005303/0.0157, allocations: 0.4997 MB / 338.3 MB, free: 2.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.777e-05/0.01579, allocations: 159.4 kB / 338.5 MB, free: 2.141 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.138e-05/0.01583, allocations: 16.5 kB / 338.5 MB, free: 2.125 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01583, allocations: 0 / 338.5 MB, free: 2.125 MB / 298.7 MB Notification: Performance of Templates: time 0.004534/0.02036, allocations: 5.586 MB / 344.1 MB, free: 12.54 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480] 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.23345710337162]