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.0008987/0.0008987, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001048/0.001048, allocations: 141.7 kB / 24.89 MB, free: 8.777 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 1.001/1.001, allocations: 173.4 MB / 201.5 MB, free: 8.758 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.824e-06/1.824e-06, allocations: 0 / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.783e-05/2.966e-05, allocations: 2.312 kB / 268.5 MB, free: 5.984 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004403/0.004433, allocations: 3.032 MB / 271.5 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.005938, allocations: 0.7007 MB / 272.2 MB, free: 2.23 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.006112, allocations: 8 kB / 272.3 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001906/0.006303, allocations: 63.38 kB / 272.3 MB, free: 2.16 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.006538, allocations: 111 kB / 272.4 MB, free: 2.051 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003069/0.006845, allocations: 87.86 kB / 272.5 MB, free: 1.965 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004286/0.007273, allocations: 426 kB / 272.9 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.007448, allocations: 79.14 kB / 273 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000352/0.0078, allocations: 231.5 kB / 273.2 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.007996, allocations: 127.6 kB / 273.4 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.165e-05/0.008047, allocations: 32 kB / 273.4 MB, free: 1.082 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.932e-05/0.008097, allocations: 35.94 kB / 273.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.287e-05/0.00816, allocations: 71.73 kB / 273.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001222/0.008282, allocations: 127.7 kB / 273.6 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.008632, allocations: 263.1 kB / 273.9 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.008637, allocations: 0 / 273.9 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.008638, allocations: 0 / 273.9 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.008644, allocations: 4 kB / 273.9 MB, free: 0.5898 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.0007693/0.009414, allocations: 0.5311 MB / 274.4 MB, free: 36 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.009454, allocations: 8.031 kB / 274.4 MB, free: 28 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.009557, allocations: 56.95 kB / 274.5 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.009829, allocations: 193.2 kB / 274.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.009852, allocations: 20.97 kB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.358e-05/0.009886, allocations: 28.38 kB / 274.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003521/0.01024, allocations: 345.5 kB / 275 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.01025, allocations: 192 / 275 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.01027, allocations: 12.38 kB / 275.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.01028, allocations: 7.938 kB / 275.1 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.01041, allocations: 68.55 kB / 275.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.01148, allocations: 0.6582 MB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002859/0.01177, allocations: 146.8 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.684e-05/0.01185, allocations: 56.39 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.01186, allocations: 4 kB / 276 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.01189, allocations: 42.56 kB / 276 MB, free: 14.28 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.244e-06/0.0119, allocations: 0 / 276 MB, free: 14.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006106/0.01251, allocations: 243 kB / 276.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.01254, allocations: 63.28 kB / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003232/0.01286, allocations: 221 kB / 276.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.01288, allocations: 33.7 kB / 276.6 MB, free: 13.69 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.327e-05/0.01297, allocations: 176.4 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.424e-05/0.01302, allocations: 75.36 kB / 276.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-05/0.01309, allocations: 45.88 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.181e-05/0.01318, allocations: 334.8 kB / 277.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.598e-05/0.01322, allocations: 24.45 kB / 277.2 MB, free: 13.03 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.756e-05/0.01329, allocations: 55.45 kB / 277.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.01342, allocations: 94.39 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.01342, allocations: 0 / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002843/0.0137, allocations: 183.7 kB / 277.5 MB, free: 12.67 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.01372, allocations: 8 kB / 277.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.01373, allocations: 0 / 277.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002832/0.01401, allocations: 89.69 kB / 277.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.01415, allocations: 35.92 kB / 277.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.01572, allocations: 2.498 MB / 280.2 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.01583, allocations: 23.88 kB / 280.2 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.01585, allocations: 4 kB / 280.2 MB, free: 9.832 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 9.574e-05/0.01594, allocations: 121.8 kB / 280.3 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.003e-05/0.01598, allocations: 19.97 kB / 280.3 MB, free: 9.684 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.308e-05/0.01601, allocations: 30.22 kB / 280.4 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.01602, allocations: 8.031 kB / 280.4 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.01603, allocations: 4 kB / 280.4 MB, free: 9.641 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.01603, allocations: 3.984 kB / 280.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005136/0.01654, allocations: 387.3 kB / 280.8 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.01655, allocations: 3.984 kB / 280.8 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.623e-05/0.01663, allocations: 23.98 kB / 280.8 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002007/0.01683, allocations: 85.59 kB / 280.9 MB, free: 9.109 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.01685, allocations: 4 kB / 280.9 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.01821, allocations: 2.494 MB / 283.4 MB, free: 6.441 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.01821, allocations: 0 / 283.4 MB, free: 6.441 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003902/0.0186, allocations: 257.7 kB / 283.6 MB, free: 6.168 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/0.01864, allocations: 27.77 kB / 283.7 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.01866, allocations: 11.94 kB / 283.7 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.01881, allocations: 23.98 kB / 283.7 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.337e-05/0.01887, allocations: 27.89 kB / 283.7 MB, free: 6.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.01888, allocations: 4 kB / 283.7 MB, free: 6.074 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.25e-05/0.01895, allocations: 74.78 kB / 283.8 MB, free: 5.996 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01895, allocations: 7.938 kB / 283.8 MB, free: 5.988 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003405/0.0193, allocations: 95.84 kB / 283.9 MB, free: 5.895 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.0001132/0.01941, allocations: 80.42 kB / 284 MB, free: 5.805 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004103/0.01982, allocations: 357.5 kB / 284.3 MB, free: 5.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.01983, allocations: 4.125 kB / 284.3 MB, free: 5.426 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002136/0.02004, allocations: 308.9 kB / 284.6 MB, free: 5.098 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.02031, allocations: 40.47 kB / 284.7 MB, free: 5.059 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009654/0.02128, allocations: 484 kB / 285.1 MB, free: 4.562 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.815e-05/0.02134, allocations: 88.31 kB / 285.2 MB, free: 4.457 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.475e-05/0.02144, allocations: 17.95 kB / 285.2 MB, free: 4.438 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.0216, allocations: 99.28 kB / 285.3 MB, free: 4.34 MB / 266.7 MB Notification: Performance of SimCode: time 1.272e-06/0.0216, allocations: 0 / 285.3 MB, free: 4.34 MB / 266.7 MB Notification: Performance of Templates: time 0.007502/0.0291, allocations: 3.734 MB / 289.1 MB, free: 0.668 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 -s gbode -gbm=radauIIA3 -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","",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.6618768433108926]