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.0007682/0.0007682, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009706/0.001739, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006786/0.0006786, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008899/0.001569, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.001/1.001, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09627/1.097, allocations: 52.49 MB / 238.3 MB, free: 4.438 MB / 234.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 2.204e-06/2.204e-06, allocations: 0 / 239.6 MB, free: 3.176 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.136e-05/2.356e-05, allocations: 6.875 kB / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003916/0.00394, allocations: 3.032 MB / 242.6 MB, free: 128 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009426/0.004882, allocations: 0.6931 MB / 243.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.004993, allocations: 11.94 kB / 243.3 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.359e-05/0.005077, allocations: 55.44 kB / 243.4 MB, free: 15.36 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.005211, allocations: 111 kB / 243.5 MB, free: 15.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001808/0.005392, allocations: 95.73 kB / 243.6 MB, free: 15.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003746/0.005767, allocations: 433.8 kB / 244 MB, free: 14.73 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.005926, allocations: 82.25 kB / 244.1 MB, free: 14.64 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000321/0.006247, allocations: 252.1 kB / 244.3 MB, free: 14.4 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.006397, allocations: 123.7 kB / 244.4 MB, free: 14.28 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.245e-05/0.00645, allocations: 32 kB / 244.5 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.996e-05/0.006489, allocations: 32 kB / 244.5 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.487e-05/0.006534, allocations: 55.75 kB / 244.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.452e-05/0.006629, allocations: 99.81 kB / 244.6 MB, free: 14.06 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.006856, allocations: 243.1 kB / 244.9 MB, free: 13.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.462e-05/0.006871, allocations: 0 / 244.9 MB, free: 13.82 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.006872, allocations: 3.938 kB / 244.9 MB, free: 13.82 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.715e-05/0.006889, allocations: 0 / 244.9 MB, free: 13.82 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.000644/0.007533, allocations: 0.6127 MB / 245.5 MB, free: 13.18 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.666e-05/0.00756, allocations: 8.031 kB / 245.5 MB, free: 13.18 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.714e-05/0.007627, allocations: 48.89 kB / 245.5 MB, free: 13.13 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.007837, allocations: 197.2 kB / 245.7 MB, free: 12.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.007852, allocations: 21.03 kB / 245.8 MB, free: 12.89 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.007878, allocations: 28.38 kB / 245.8 MB, free: 12.86 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.008142, allocations: 353.5 kB / 246.1 MB, free: 12.47 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.008151, allocations: 192 / 246.1 MB, free: 12.47 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.008169, allocations: 12.38 kB / 246.1 MB, free: 12.46 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.008181, allocations: 11.94 kB / 246.2 MB, free: 12.45 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.478e-05/0.008276, allocations: 68.5 kB / 246.2 MB, free: 12.38 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000878/0.009154, allocations: 0.6541 MB / 246.9 MB, free: 11.69 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.009394, allocations: 150.9 kB / 247 MB, free: 11.54 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.773e-05/0.009441, allocations: 47.97 kB / 247.1 MB, free: 11.49 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/0.009457, allocations: 4 kB / 247.1 MB, free: 11.48 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.009478, allocations: 38.5 kB / 247.1 MB, free: 11.44 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.132e-06/0.009479, allocations: 0 / 247.1 MB, free: 11.44 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004275/0.009907, allocations: 251 kB / 247.4 MB, free: 11.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/0.009931, allocations: 55.41 kB / 247.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.01005, allocations: 228.9 kB / 247.6 MB, free: 10.88 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.01007, allocations: 33.7 kB / 247.7 MB, free: 10.84 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.252e-05/0.01013, allocations: 172.4 kB / 247.8 MB, free: 10.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.01017, allocations: 67.38 kB / 247.9 MB, free: 10.6 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.028e-05/0.01022, allocations: 49.88 kB / 248 MB, free: 10.54 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.911e-05/0.0103, allocations: 346.8 kB / 248.3 MB, free: 10.19 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.895e-05/0.01032, allocations: 24.39 kB / 248.3 MB, free: 10.17 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.549e-05/0.01037, allocations: 47.48 kB / 248.4 MB, free: 10.11 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.317e-05/0.01045, allocations: 94.44 kB / 248.5 MB, free: 10.01 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.01046, allocations: 0 / 248.5 MB, free: 10.01 MB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0001939/0.01065, allocations: 187.6 kB / 248.6 MB, free: 9.816 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.01066, allocations: 8 kB / 248.6 MB, free: 9.809 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.01067, allocations: 0 / 248.6 MB, free: 9.809 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000198/0.01086, allocations: 89.69 kB / 248.7 MB, free: 9.715 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.528e-05/0.01096, allocations: 35.97 kB / 248.8 MB, free: 9.68 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/0.01213, allocations: 2.49 MB / 251.3 MB, free: 7.016 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.715e-05/0.01221, allocations: 31.77 kB / 251.3 MB, free: 6.984 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.01222, allocations: 4 kB / 251.3 MB, free: 6.98 MB / 250.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 7.753e-05/0.0123, allocations: 121.8 kB / 251.4 MB, free: 6.852 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.69e-05/0.01233, allocations: 19.98 kB / 251.4 MB, free: 6.832 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.512e-05/0.01235, allocations: 38.2 kB / 251.5 MB, free: 6.797 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.01235, allocations: 0 / 251.5 MB, free: 6.797 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.01236, allocations: 4 kB / 251.5 MB, free: 6.793 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.227e-06/0.01236, allocations: 8.016 kB / 251.5 MB, free: 6.785 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003519/0.01271, allocations: 380.4 kB / 251.9 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.01272, allocations: 4 kB / 251.9 MB, free: 6.375 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.694e-05/0.01277, allocations: 23.92 kB / 251.9 MB, free: 6.352 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.181e-05/0.0128, allocations: 27.78 kB / 251.9 MB, free: 6.324 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001415/0.01294, allocations: 85.78 kB / 252 MB, free: 6.234 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.01294, allocations: 4 kB / 252 MB, free: 6.23 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009805/0.01392, allocations: 2.486 MB / 254.5 MB, free: 3.57 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01392, allocations: 0 / 254.5 MB, free: 3.57 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001828/0.01411, allocations: 260.8 kB / 254.7 MB, free: 3.297 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.01412, allocations: 15.98 kB / 254.8 MB, free: 3.281 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.511e-05/0.01422, allocations: 23.98 kB / 254.8 MB, free: 3.258 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.01427, allocations: 19.95 kB / 254.8 MB, free: 3.238 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-06/0.01428, allocations: 8 kB / 254.8 MB, free: 3.23 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.391e-05/0.01433, allocations: 74.78 kB / 254.9 MB, free: 3.152 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01433, allocations: 0 / 254.9 MB, free: 3.152 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002177/0.01455, allocations: 99.78 kB / 255 MB, free: 3.055 MB / 250.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 7.356e-05/0.01462, allocations: 92.36 kB / 255.1 MB, free: 2.953 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003539/0.01498, allocations: 349.5 kB / 255.4 MB, free: 2.586 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/0.01499, allocations: 8 kB / 255.4 MB, free: 2.578 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.01514, allocations: 306 kB / 255.7 MB, free: 2.25 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.01534, allocations: 76.56 kB / 255.8 MB, free: 2.176 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.01801, allocations: 0.4884 MB / 256.3 MB, free: 1.66 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.475e-05/0.01807, allocations: 88.31 kB / 256.4 MB, free: 1.555 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.093e-05/0.01813, allocations: 17.95 kB / 256.4 MB, free: 1.539 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.01824, allocations: 103.3 kB / 256.5 MB, free: 1.438 MB / 250.7 MB Notification: Performance of SimCode: time 8.41e-07/0.01824, allocations: 0 / 256.5 MB, free: 1.438 MB / 250.7 MB Notification: Performance of Templates: time 0.00539/0.02363, allocations: 3.914 MB / 260.4 MB, free: 13.58 MB / 266.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 -ignoreHideResult -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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5779586071148515]