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.001573/0.001573, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001956/0.001956, allocations: 213.3 kB / 24.48 MB, free: 3.941 MB / 14.72 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 1.945/1.945, allocations: 230.6 MB / 258.2 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002208/0.002208, allocations: 51.92 kB / 379 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3485, allocations: 53.37 MB / 432.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005497/0.354, allocations: 2.789 MB / 435.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001792/0.3558, allocations: 0.7361 MB / 435.9 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.356, allocations: 7.938 kB / 435.9 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002351/0.3562, allocations: 51.44 kB / 435.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002731/0.3565, allocations: 103 kB / 436 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.3569, allocations: 103.9 kB / 436.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000561/0.3575, allocations: 410.2 kB / 436.5 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/0.3577, allocations: 79.58 kB / 436.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003169/0.358, allocations: 163.4 kB / 436.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002553/0.3583, allocations: 163.3 kB / 436.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.513e-05/0.3583, allocations: 32 kB / 437 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.3584, allocations: 40 kB / 437 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.3585, allocations: 79.69 kB / 437.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.3587, allocations: 143.4 kB / 437.2 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005949/0.3593, allocations: 400 kB / 437.6 MB, free: 1.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3593, allocations: 4 kB / 437.6 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3593, allocations: 0 / 437.6 MB, free: 1.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.3593, allocations: 0 / 437.6 MB, free: 1.434 MB / 334.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.00129/0.3606, allocations: 0.5637 MB / 438.2 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3607, allocations: 12.03 kB / 438.2 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002348/0.3609, allocations: 52.69 kB / 438.2 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004828/0.3614, allocations: 221.8 kB / 438.5 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.3614, allocations: 25.03 kB / 438.5 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.3615, allocations: 32.31 kB / 438.5 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007818/0.3623, allocations: 416.6 kB / 438.9 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.3623, allocations: 4 kB / 438.9 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/0.3623, allocations: 16 kB / 438.9 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.3623, allocations: 8 kB / 438.9 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006758/0.363, allocations: 210.6 kB / 439.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00207/0.3651, allocations: 0.8172 MB / 440 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006225/0.3657, allocations: 215.8 kB / 440.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/0.366, allocations: 92.81 kB / 440.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.366, allocations: 0 / 440.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.528e-05/0.366, allocations: 42.55 kB / 440.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.482e-06/0.366, allocations: 0 / 440.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00161/0.3676, allocations: 407.2 kB / 440.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.477e-05/0.3677, allocations: 55.34 kB / 440.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003321/0.3681, allocations: 241 kB / 441 MB, free: 13.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.3681, allocations: 41.64 kB / 441 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.3683, allocations: 192.4 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.699e-05/0.3683, allocations: 75.38 kB / 441.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.3684, allocations: 45.94 kB / 441.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00025/0.3687, allocations: 330.8 kB / 441.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002632/0.369, allocations: 76.42 kB / 441.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.3692, allocations: 107.4 kB / 441.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005984/0.3698, allocations: 194.5 kB / 442 MB, free: 12.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3698, allocations: 0 / 442 MB, free: 12.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008464/0.3707, allocations: 315 kB / 442.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.3707, allocations: 7.938 kB / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3707, allocations: 0 / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003144/0.371, allocations: 69.67 kB / 442.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.3713, allocations: 43.91 kB / 442.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002981/0.3743, allocations: 2.776 MB / 445.2 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.3745, allocations: 35.84 kB / 445.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.3745, allocations: 8 kB / 445.3 MB, free: 9.293 MB / 350.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.0001774/0.3747, allocations: 138.2 kB / 445.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.562e-05/0.3747, allocations: 23.86 kB / 445.4 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.459e-05/0.3748, allocations: 34.2 kB / 445.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3748, allocations: 3.984 kB / 445.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.3748, allocations: 4 kB / 445.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.3748, allocations: 0 / 445.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.3761, allocations: 0.5797 MB / 446.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3761, allocations: 0 / 446.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.3762, allocations: 35.84 kB / 446.1 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002378/0.3765, allocations: 77.61 kB / 446.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.3765, allocations: 0 / 446.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002907/0.3794, allocations: 2.783 MB / 449 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3794, allocations: 0 / 449 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008022/0.3802, allocations: 373.6 kB / 449.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.337e-05/0.3803, allocations: 19.86 kB / 449.3 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.3803, allocations: 4 kB / 449.3 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000309/0.3806, allocations: 36.09 kB / 449.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.625e-05/0.3807, allocations: 27.95 kB / 449.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.3807, allocations: 4 kB / 449.4 MB, free: 4.875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002193/0.3809, allocations: 188.4 kB / 449.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3809, allocations: 0 / 449.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005263/0.3814, allocations: 95.78 kB / 449.7 MB, free: 4.602 MB / 350.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.000148/0.3816, allocations: 107.2 kB / 449.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000967/0.3826, allocations: 434.8 kB / 450.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3826, allocations: 0 / 450.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005677/0.3831, allocations: 341.2 kB / 450.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.3836, allocations: 36.55 kB / 450.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.3847, allocations: 0.497 MB / 451.1 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001887/0.3849, allocations: 155.5 kB / 451.2 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.385, allocations: 17.95 kB / 451.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.474e-05/0.3851, allocations: 19.44 kB / 451.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3851, allocations: 0 / 451.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of Templates: time 0.01073/0.3958, allocations: 3.982 MB / 455.2 MB, free: 14.99 MB / 366.1 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.602514287005761]