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.001735/0.001735, allocations: 92.47 kB / 20.95 MB, free: 472 kB / 14.72 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.001982/0.001982, allocations: 153.9 kB / 24.25 MB, free: 3.504 MB / 14.72 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.396/1.396, allocations: 173.3 MB / 200.8 MB, free: 12.74 MB / 190.1 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.282e-06/1.282e-06, allocations: 0 / 267.3 MB, free: 10.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.396e-05, allocations: 5.406 kB / 267.3 MB, free: 10.2 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004046/0.00407, allocations: 2.775 MB / 270.1 MB, free: 7.406 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.005214, allocations: 0.666 MB / 270.8 MB, free: 6.734 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.005343, allocations: 11.94 kB / 270.8 MB, free: 6.723 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.005504, allocations: 51.5 kB / 270.8 MB, free: 6.672 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.0057, allocations: 107 kB / 270.9 MB, free: 6.566 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.005962, allocations: 91.8 kB / 271 MB, free: 6.477 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004655/0.006428, allocations: 429.9 kB / 271.4 MB, free: 6.055 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.006609, allocations: 80.5 kB / 271.5 MB, free: 5.973 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003097/0.006919, allocations: 223.5 kB / 271.7 MB, free: 5.754 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.00711, allocations: 123.6 kB / 271.9 MB, free: 5.633 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 6.076e-05/0.00717, allocations: 36 kB / 271.9 MB, free: 5.598 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.654e-05/0.007237, allocations: 32 kB / 271.9 MB, free: 5.566 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 7.633e-05/0.007313, allocations: 71.69 kB / 272 MB, free: 5.496 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.007465, allocations: 123.7 kB / 272.1 MB, free: 5.375 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004629/0.007928, allocations: 398.7 kB / 272.5 MB, free: 4.984 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.00793, allocations: 0 / 272.5 MB, free: 4.984 MB / 254.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.007931, allocations: 3.938 kB / 272.5 MB, free: 4.98 MB / 254.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.007937, allocations: 0 / 272.5 MB, free: 4.98 MB / 254.1 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.001036/0.008973, allocations: 0.5676 MB / 273.1 MB, free: 4.383 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.009009, allocations: 15.97 kB / 273.1 MB, free: 4.367 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.009119, allocations: 60.7 kB / 273.1 MB, free: 4.309 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.009502, allocations: 225.1 kB / 273.4 MB, free: 4.062 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.171e-05/0.009533, allocations: 25.03 kB / 273.4 MB, free: 4.035 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.849e-05/0.009572, allocations: 24.38 kB / 273.4 MB, free: 4.012 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006116/0.01018, allocations: 416.8 kB / 273.8 MB, free: 3.562 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.01019, allocations: 192 / 273.8 MB, free: 3.562 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.268e-05/0.01023, allocations: 12.38 kB / 273.8 MB, free: 3.551 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.01024, allocations: 11.94 kB / 273.8 MB, free: 3.539 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000511/0.01075, allocations: 214.5 kB / 274.1 MB, free: 3.332 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.0124, allocations: 0.8179 MB / 274.9 MB, free: 2.457 MB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005082/0.0129, allocations: 202.6 kB / 275.1 MB, free: 2.25 MB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002377/0.01314, allocations: 100.8 kB / 275.2 MB, free: 2.148 MB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.01316, allocations: 4 kB / 275.2 MB, free: 2.145 MB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.01319, allocations: 38.56 kB / 275.2 MB, free: 2.098 MB / 254.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.0132, allocations: 0 / 275.2 MB, free: 2.098 MB / 254.1 MB Notification: Performance of matching and sorting (n=21): time 0.001269/0.01446, allocations: 415.2 kB / 275.6 MB, free: 1.68 MB / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.0145, allocations: 51.41 kB / 275.7 MB, free: 1.617 MB / 254.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.01476, allocations: 245.7 kB / 275.9 MB, free: 1.371 MB / 254.1 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.01479, allocations: 33.7 kB / 275.9 MB, free: 1.332 MB / 254.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.01492, allocations: 184.5 kB / 276.1 MB, free: 1.145 MB / 254.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.823e-05/0.01498, allocations: 75.38 kB / 276.2 MB, free: 1.07 MB / 254.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.672e-05/0.01507, allocations: 41.94 kB / 276.2 MB, free: 1.02 MB / 254.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.01522, allocations: 338.8 kB / 276.6 MB, free: 0.6797 MB / 254.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.01543, allocations: 80.42 kB / 276.6 MB, free: 0.6016 MB / 254.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002449/0.01568, allocations: 107.5 kB / 276.7 MB, free: 500 kB / 254.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004105/0.01609, allocations: 179.6 kB / 276.9 MB, free: 312 kB / 254.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01609, allocations: 0 / 276.9 MB, free: 312 kB / 254.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007064/0.01679, allocations: 335.5 kB / 277.3 MB, free: 15.96 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.01681, allocations: 4 kB / 277.3 MB, free: 15.96 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.01681, allocations: 0 / 277.3 MB, free: 15.96 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000441/0.01725, allocations: 105.6 kB / 277.4 MB, free: 15.85 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/0.01746, allocations: 43.86 kB / 277.4 MB, free: 15.81 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002602/0.02006, allocations: 2.807 MB / 280.2 MB, free: 12.8 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.02026, allocations: 27.84 kB / 280.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.02028, allocations: 8 kB / 280.2 MB, free: 12.77 MB / 270.1 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.0001427/0.02042, allocations: 134 kB / 280.4 MB, free: 12.62 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.514e-05/0.02049, allocations: 35.86 kB / 280.4 MB, free: 12.59 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.776e-05/0.02055, allocations: 30.27 kB / 280.4 MB, free: 12.56 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.02055, allocations: 4 kB / 280.4 MB, free: 12.56 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.02056, allocations: 0 / 280.4 MB, free: 12.56 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.02056, allocations: 3.938 kB / 280.4 MB, free: 12.55 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/0.02158, allocations: 0.5845 MB / 281 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.02158, allocations: 0 / 281 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.02173, allocations: 19.98 kB / 281 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003479/0.02207, allocations: 105.6 kB / 281.2 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.02209, allocations: 4 kB / 281.2 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002487/0.02458, allocations: 2.788 MB / 283.9 MB, free: 8.793 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.02458, allocations: 4.062 kB / 283.9 MB, free: 8.789 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006634/0.02524, allocations: 377.5 kB / 284.3 MB, free: 8.398 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.163e-05/0.02528, allocations: 19.86 kB / 284.3 MB, free: 8.379 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.02531, allocations: 4 kB / 284.3 MB, free: 8.375 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002678/0.02558, allocations: 35.97 kB / 284.4 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.934e-05/0.02566, allocations: 27.89 kB / 284.4 MB, free: 8.312 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.02567, allocations: 4 kB / 284.4 MB, free: 8.309 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001677/0.02584, allocations: 173.2 kB / 284.6 MB, free: 8.141 MB / 270.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02584, allocations: 0 / 284.6 MB, free: 8.141 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003972/0.02624, allocations: 103.8 kB / 284.7 MB, free: 8.039 MB / 270.1 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.0001227/0.02636, allocations: 103.2 kB / 284.8 MB, free: 7.93 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0008258/0.02719, allocations: 440.6 kB / 285.2 MB, free: 7.477 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.02719, allocations: 0 / 285.2 MB, free: 7.477 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004662/0.02765, allocations: 341.2 kB / 285.5 MB, free: 7.117 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.02802, allocations: 40.42 kB / 285.6 MB, free: 7.078 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008721/0.02889, allocations: 0.4926 MB / 286.1 MB, free: 6.562 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001557/0.02905, allocations: 155.4 kB / 286.2 MB, free: 6.387 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.193e-05/0.02914, allocations: 17.95 kB / 286.2 MB, free: 6.371 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.018e-05/0.0292, allocations: 28.48 kB / 286.3 MB, free: 6.344 MB / 270.1 MB Notification: Performance of SimCode: time 3.5e-07/0.0292, allocations: 0 / 286.3 MB, free: 6.344 MB / 270.1 MB Notification: Performance of Templates: time 0.008338/0.03754, allocations: 3.556 MB / 289.8 MB, free: 2.836 MB / 270.1 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.0956288278102875]