Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.0009894/0.0009894, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 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.001148/0.001148, allocations: 171.6 kB / 25.33 MB, free: 8.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9418/0.9418, allocations: 158.6 MB / 187.2 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 251 MB, free: 7.516 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.651e-05/2.826e-05, allocations: 6.312 kB / 251 MB, free: 7.508 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.006977/0.007006, allocations: 2.973 MB / 254 MB, free: 4.516 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004415/0.01142, allocations: 0.7059 MB / 254.7 MB, free: 3.801 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001999/0.01162, allocations: 11.94 kB / 254.7 MB, free: 3.789 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001777/0.0118, allocations: 63.42 kB / 254.8 MB, free: 3.727 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.012, allocations: 103 kB / 254.9 MB, free: 3.625 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002918/0.0123, allocations: 91.8 kB / 255 MB, free: 3.535 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004966/0.01279, allocations: 425.8 kB / 255.4 MB, free: 3.117 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.01301, allocations: 79.62 kB / 255.5 MB, free: 3.039 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003942/0.01341, allocations: 231.5 kB / 255.7 MB, free: 2.812 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003227/0.01664, allocations: 127.6 kB / 255.8 MB, free: 2.688 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.103e-05/0.01672, allocations: 32 kB / 255.9 MB, free: 2.656 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.832e-05/0.01677, allocations: 32 kB / 255.9 MB, free: 2.625 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.143e-05/0.01684, allocations: 71.73 kB / 256 MB, free: 2.555 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.01696, allocations: 123.7 kB / 256.1 MB, free: 2.434 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003292/0.01729, allocations: 263.1 kB / 256.3 MB, free: 2.176 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.0173, allocations: 3.938 kB / 256.3 MB, free: 2.172 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.0173, allocations: 0 / 256.3 MB, free: 2.172 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.01731, allocations: 4 kB / 256.4 MB, free: 2.168 MB / 234.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.0008031/0.01811, allocations: 0.6558 MB / 257 MB, free: 1.473 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.01815, allocations: 11.98 kB / 257 MB, free: 1.461 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.829e-05/0.01825, allocations: 60.7 kB / 257.1 MB, free: 1.402 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000298/0.01855, allocations: 228 kB / 257.3 MB, free: 1.152 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.01857, allocations: 21.03 kB / 257.3 MB, free: 1.133 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.1e-05/0.01861, allocations: 28.38 kB / 257.3 MB, free: 1.105 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004318/0.01904, allocations: 357.5 kB / 257.7 MB, free: 0.7109 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.01905, allocations: 192 / 257.7 MB, free: 0.7109 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.685e-05/0.01908, allocations: 12.38 kB / 257.7 MB, free: 0.6992 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.01909, allocations: 11.94 kB / 257.7 MB, free: 0.6875 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002189/0.01931, allocations: 99.86 kB / 257.8 MB, free: 0.5898 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004383/0.0237, allocations: 0.8446 MB / 258.7 MB, free: 15.69 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.02406, allocations: 183.1 kB / 258.8 MB, free: 15.5 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.02416, allocations: 67.28 kB / 258.9 MB, free: 15.43 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.02419, allocations: 4 kB / 258.9 MB, free: 15.43 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.02422, allocations: 41.39 kB / 259 MB, free: 15.38 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 2.044e-06/0.02422, allocations: 3.938 kB / 259 MB, free: 15.37 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007524/0.02497, allocations: 309.5 kB / 259.3 MB, free: 15.05 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/0.025, allocations: 55.41 kB / 259.3 MB, free: 14.99 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.02521, allocations: 288.3 kB / 259.6 MB, free: 14.69 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.02523, allocations: 25.7 kB / 259.6 MB, free: 14.66 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.02534, allocations: 239.2 kB / 259.9 MB, free: 14.42 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.777e-05/0.02539, allocations: 79.23 kB / 259.9 MB, free: 14.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.473e-05/0.02547, allocations: 47.61 kB / 260 MB, free: 14.29 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.02561, allocations: 0.5117 MB / 260.5 MB, free: 13.77 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.232e-05/0.02569, allocations: 36.44 kB / 260.5 MB, free: 13.73 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.02579, allocations: 71.97 kB / 260.6 MB, free: 13.65 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001762/0.02597, allocations: 110.9 kB / 260.7 MB, free: 13.53 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.02597, allocations: 4 kB / 260.7 MB, free: 13.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003817/0.02635, allocations: 236.6 kB / 260.9 MB, free: 13.28 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.02637, allocations: 4 kB / 260.9 MB, free: 13.27 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.02638, allocations: 4 kB / 260.9 MB, free: 13.27 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003453/0.02672, allocations: 103.3 kB / 261 MB, free: 13.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.02685, allocations: 31.92 kB / 261.1 MB, free: 13.13 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002018/0.02887, allocations: 3.676 MB / 264.8 MB, free: 9.215 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.029, allocations: 31.77 kB / 264.8 MB, free: 9.184 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.02901, allocations: 4 kB / 264.8 MB, free: 9.18 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 0.0001176/0.02913, allocations: 168.6 kB / 265 MB, free: 9.004 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.46e-05/0.02918, allocations: 31.86 kB / 265 MB, free: 8.973 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.339e-05/0.02922, allocations: 26.47 kB / 265 MB, free: 8.941 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.02922, allocations: 4.031 kB / 265 MB, free: 8.938 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.02923, allocations: 8 kB / 265 MB, free: 8.93 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.02924, allocations: 7.922 kB / 265 MB, free: 8.922 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006861/0.02992, allocations: 0.5554 MB / 265.6 MB, free: 8.312 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.02992, allocations: 0 / 265.6 MB, free: 8.312 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.531e-05/0.03001, allocations: 27.92 kB / 265.6 MB, free: 8.285 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002469/0.03026, allocations: 91.31 kB / 265.7 MB, free: 8.188 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.03027, allocations: 7.984 kB / 265.7 MB, free: 8.18 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001991/0.03227, allocations: 3.672 MB / 269.4 MB, free: 4.262 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.03227, allocations: 0 / 269.4 MB, free: 4.262 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.03264, allocations: 363.5 kB / 269.7 MB, free: 3.879 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.424e-05/0.03267, allocations: 35.84 kB / 269.8 MB, free: 3.844 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.946e-05/0.03269, allocations: 4.125 kB / 269.8 MB, free: 3.84 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.03286, allocations: 27.98 kB / 269.8 MB, free: 3.812 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.384e-05/0.03293, allocations: 35.81 kB / 269.8 MB, free: 3.777 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.03294, allocations: 8 kB / 269.8 MB, free: 3.77 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001368/0.03308, allocations: 197.1 kB / 270 MB, free: 3.574 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.03308, allocations: 4 kB / 270 MB, free: 3.57 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003941/0.03348, allocations: 95.84 kB / 270.1 MB, free: 3.477 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 0.0001239/0.0336, allocations: 103.2 kB / 270.2 MB, free: 3.367 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005277/0.03413, allocations: 481.9 kB / 270.7 MB, free: 2.859 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.03413, allocations: 4 kB / 270.7 MB, free: 2.855 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.03441, allocations: 431.3 kB / 271.1 MB, free: 2.395 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.03475, allocations: 44.41 kB / 271.2 MB, free: 2.352 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.03585, allocations: 495.3 kB / 271.7 MB, free: 1.84 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.236e-05/0.03592, allocations: 92.3 kB / 271.7 MB, free: 1.73 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.101e-05/0.036, allocations: 17.95 kB / 271.8 MB, free: 1.715 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.973e-05/0.03605, allocations: 24.44 kB / 271.8 MB, free: 1.691 MB / 250.7 MB Notification: Performance of SimCode: time 7.81e-07/0.03605, allocations: 0 / 271.8 MB, free: 1.691 MB / 250.7 MB Notification: Performance of Templates: time 0.007292/0.04335, allocations: 3.602 MB / 275.4 MB, free: 14.11 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.964968293905258]