Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009001/0.0009001, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.001083/0.001083, allocations: 173.3 kB / 24.91 MB, free: 9.188 MB / 18.57 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 0.9318/0.9318, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 273.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.479e-05/1.596e-05, allocations: 6.312 kB / 273.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002707/0.002723, allocations: 2.993 MB / 276.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.003824, allocations: 0.7747 MB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.003925, allocations: 7.938 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.004049, allocations: 51.5 kB / 277.3 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.004187, allocations: 110.9 kB / 277.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.004427, allocations: 103.8 kB / 277.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000322/0.004749, allocations: 429.9 kB / 277.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.00488, allocations: 78.23 kB / 278 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002584/0.005138, allocations: 235.5 kB / 278.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.005261, allocations: 131.6 kB / 278.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.69e-05/0.005297, allocations: 32 kB / 278.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.92e-05/0.005357, allocations: 35.94 kB / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.046e-05/0.005397, allocations: 67.75 kB / 278.5 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.262e-05/0.00548, allocations: 131.7 kB / 278.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.005716, allocations: 271 kB / 278.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.005718, allocations: 0 / 278.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.005718, allocations: 0 / 278.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.005721, allocations: 0 / 278.9 MB, free: 11.85 MB / 266.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.000507/0.006228, allocations: 0.5427 MB / 279.4 MB, free: 11.28 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.006259, allocations: 12.03 kB / 279.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.006392, allocations: 52.89 kB / 279.5 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.006586, allocations: 201.1 kB / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.006601, allocations: 25.03 kB / 279.7 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.006628, allocations: 28.38 kB / 279.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002471/0.006875, allocations: 345.5 kB / 280.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.006884, allocations: 4.188 kB / 280.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.006902, allocations: 12.38 kB / 280.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.00691, allocations: 7.938 kB / 280.1 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.903e-05/0.006999, allocations: 76.48 kB / 280.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007572/0.007756, allocations: 0.6426 MB / 280.8 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.007949, allocations: 150.9 kB / 281 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.649e-05/0.007995, allocations: 44.78 kB / 281 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.00801, allocations: 4 kB / 281 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.008031, allocations: 38.56 kB / 281 MB, free: 9.535 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.242e-06/0.008032, allocations: 0 / 281 MB, free: 9.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004304/0.008462, allocations: 266 kB / 281.3 MB, free: 9.266 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.207e-05/0.008484, allocations: 55.34 kB / 281.4 MB, free: 9.199 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.008603, allocations: 229 kB / 281.6 MB, free: 8.965 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.008618, allocations: 29.7 kB / 281.6 MB, free: 8.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.443e-05/0.008683, allocations: 172.9 kB / 281.8 MB, free: 8.758 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.008717, allocations: 79.31 kB / 281.9 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.901e-05/0.008766, allocations: 45.91 kB / 281.9 MB, free: 8.625 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.959e-05/0.008846, allocations: 338.8 kB / 282.2 MB, free: 8.285 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.889e-05/0.008875, allocations: 16.47 kB / 282.2 MB, free: 8.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.836e-05/0.008923, allocations: 55.47 kB / 282.3 MB, free: 8.207 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.557e-05/0.009009, allocations: 93.02 kB / 282.4 MB, free: 8.109 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.009011, allocations: 0 / 282.4 MB, free: 8.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0001855/0.009196, allocations: 179.7 kB / 282.6 MB, free: 7.922 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/0.009206, allocations: 4 kB / 282.6 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.009211, allocations: 3.984 kB / 282.6 MB, free: 7.914 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000196/0.009407, allocations: 89.69 kB / 282.7 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.605e-05/0.009493, allocations: 39.92 kB / 282.7 MB, free: 7.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.0106, allocations: 2.482 MB / 285.2 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.146e-05/0.01067, allocations: 27.83 kB / 285.2 MB, free: 5.094 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.01068, allocations: 4 kB / 285.2 MB, free: 5.09 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 7.471e-05/0.01076, allocations: 125.8 kB / 285.3 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/0.01079, allocations: 27.97 kB / 285.4 MB, free: 4.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.973e-05/0.01081, allocations: 26.22 kB / 285.4 MB, free: 4.906 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.01081, allocations: 4 kB / 285.4 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.01081, allocations: 0 / 285.4 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.01082, allocations: 3.984 kB / 285.4 MB, free: 4.898 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003563/0.01117, allocations: 388.4 kB / 285.8 MB, free: 4.484 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.01118, allocations: 4 kB / 285.8 MB, free: 4.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.039e-05/0.01123, allocations: 27.92 kB / 285.8 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001448/0.01137, allocations: 85.64 kB / 285.9 MB, free: 4.363 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.01138, allocations: 4 kB / 285.9 MB, free: 4.359 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009879/0.01237, allocations: 2.483 MB / 288.4 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.01237, allocations: 4.062 kB / 288.4 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001911/0.01256, allocations: 260.8 kB / 288.6 MB, free: 1.418 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.265e-05/0.01258, allocations: 35.73 kB / 288.7 MB, free: 1.383 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.01259, allocations: 3.938 kB / 288.7 MB, free: 1.379 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.756e-05/0.01269, allocations: 23.98 kB / 288.7 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.01273, allocations: 31.89 kB / 288.7 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.01274, allocations: 4 kB / 288.7 MB, free: 1.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.116e-05/0.01279, allocations: 74.78 kB / 288.8 MB, free: 1.246 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01279, allocations: 0 / 288.8 MB, free: 1.246 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002092/0.013, allocations: 95.83 kB / 288.9 MB, free: 1.152 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 6.862e-05/0.01307, allocations: 80.42 kB / 289 MB, free: 1.066 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002682/0.01334, allocations: 361 kB / 289.3 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.01334, allocations: 4 kB / 289.3 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.01349, allocations: 301.9 kB / 289.6 MB, free: 368 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001747/0.01367, allocations: 43.75 kB / 289.7 MB, free: 328 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006521/0.01432, allocations: 492.8 kB / 290.2 MB, free: 15.81 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.395e-05/0.01437, allocations: 88.31 kB / 290.2 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.822e-05/0.01443, allocations: 21.94 kB / 290.3 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.01455, allocations: 103.3 kB / 290.4 MB, free: 15.58 MB / 282.7 MB Notification: Performance of SimCode: time 4.3e-07/0.01455, allocations: 0 / 290.4 MB, free: 15.58 MB / 282.7 MB Notification: Performance of Templates: time 0.005085/0.01963, allocations: 3.752 MB / 294.1 MB, free: 11.9 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.6169842607341707]