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.0007338/0.0007338, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001116/0.001849, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006991/0.0006991, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009718/0.001671, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.022/1.022, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0877/1.11, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.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.413e-06/1.413e-06, allocations: 0 / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.205e-05, allocations: 2.312 kB / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00398/0.004002, allocations: 3.064 MB / 247.8 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.005481, allocations: 0.7746 MB / 248.6 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.005642, allocations: 8 kB / 248.6 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.005777, allocations: 59.44 kB / 248.6 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002151/0.005992, allocations: 103 kB / 248.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.006265, allocations: 107.8 kB / 248.8 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004237/0.006689, allocations: 429.9 kB / 249.3 MB, free: 9.637 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.00688, allocations: 78.2 kB / 249.3 MB, free: 9.562 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004145/0.007295, allocations: 272.1 kB / 249.6 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.007465, allocations: 119.6 kB / 249.7 MB, free: 9.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.796e-05/0.007513, allocations: 32 kB / 249.8 MB, free: 9.148 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.007615, allocations: 39.98 kB / 249.8 MB, free: 9.109 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.118e-05/0.007666, allocations: 51.81 kB / 249.8 MB, free: 9.059 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.00777, allocations: 103.8 kB / 249.9 MB, free: 8.957 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003113/0.008081, allocations: 251 kB / 250.2 MB, free: 8.711 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.128e-05/0.008093, allocations: 0 / 250.2 MB, free: 8.711 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.008094, allocations: 0 / 250.2 MB, free: 8.711 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.008105, allocations: 0 / 250.2 MB, free: 8.711 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.0007753/0.00888, allocations: 0.6088 MB / 250.8 MB, free: 8.078 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.008915, allocations: 8.031 kB / 250.8 MB, free: 8.07 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002153/0.009131, allocations: 138 kB / 250.9 MB, free: 7.918 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002655/0.009396, allocations: 189.3 kB / 251.1 MB, free: 7.707 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.009419, allocations: 20.97 kB / 251.1 MB, free: 7.688 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.009458, allocations: 28.38 kB / 251.2 MB, free: 7.66 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003464/0.009804, allocations: 345.5 kB / 251.5 MB, free: 7.273 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.009814, allocations: 4.188 kB / 251.5 MB, free: 7.27 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.009835, allocations: 8.375 kB / 251.5 MB, free: 7.262 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.009847, allocations: 11.94 kB / 251.5 MB, free: 7.25 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001173/0.009964, allocations: 64.56 kB / 251.6 MB, free: 7.191 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.01103, allocations: 0.6698 MB / 252.3 MB, free: 6.488 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002799/0.01131, allocations: 142.9 kB / 252.4 MB, free: 6.34 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.817e-05/0.01138, allocations: 52.7 kB / 252.5 MB, free: 6.285 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.0114, allocations: 4 kB / 252.5 MB, free: 6.281 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.01142, allocations: 38.56 kB / 252.5 MB, free: 6.234 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.944e-06/0.01143, allocations: 4 kB / 252.5 MB, free: 6.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006157/0.01204, allocations: 262 kB / 252.8 MB, free: 5.965 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.675e-05/0.01207, allocations: 51.41 kB / 252.8 MB, free: 5.902 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.01224, allocations: 221 kB / 253 MB, free: 5.676 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.01226, allocations: 29.64 kB / 253.1 MB, free: 5.641 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.883e-05/0.01236, allocations: 180.9 kB / 253.2 MB, free: 5.453 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.925e-05/0.01241, allocations: 79.36 kB / 253.3 MB, free: 5.375 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.512e-05/0.01248, allocations: 41.92 kB / 253.3 MB, free: 5.324 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.0126, allocations: 338.8 kB / 253.7 MB, free: 4.984 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.651e-05/0.01265, allocations: 16.47 kB / 253.7 MB, free: 4.969 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.09e-05/0.01272, allocations: 55.47 kB / 253.7 MB, free: 4.906 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.01286, allocations: 97 kB / 253.8 MB, free: 4.805 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.01286, allocations: 0 / 253.8 MB, free: 4.805 MB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003001/0.01316, allocations: 187 kB / 254 MB, free: 4.609 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.01318, allocations: 4 kB / 254 MB, free: 4.605 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.01318, allocations: 0 / 254 MB, free: 4.605 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002799/0.01346, allocations: 85.7 kB / 254.1 MB, free: 4.516 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.01361, allocations: 43.91 kB / 254.2 MB, free: 4.473 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001592/0.0152, allocations: 2.491 MB / 256.6 MB, free: 1.809 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.01531, allocations: 27.78 kB / 256.7 MB, free: 1.781 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.01533, allocations: 4 kB / 256.7 MB, free: 1.777 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.0001041/0.01543, allocations: 121.8 kB / 256.8 MB, free: 1.648 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.273e-05/0.01547, allocations: 19.98 kB / 256.8 MB, free: 1.629 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.405e-05/0.01551, allocations: 30.27 kB / 256.8 MB, free: 1.605 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.01551, allocations: 4.031 kB / 256.9 MB, free: 1.602 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.01552, allocations: 7.938 kB / 256.9 MB, free: 1.594 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.01552, allocations: 0 / 256.9 MB, free: 1.594 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005371/0.01606, allocations: 392.3 kB / 257.2 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.01606, allocations: 0 / 257.2 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.585e-05/0.01616, allocations: 23.98 kB / 257.3 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/0.01619, allocations: 23.8 kB / 257.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002384/0.01643, allocations: 93.56 kB / 257.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.01644, allocations: 0 / 257.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/0.0179, allocations: 2.483 MB / 259.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.01791, allocations: 3.984 kB / 259.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/0.01818, allocations: 261.7 kB / 260.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.662e-05/0.01821, allocations: 11.98 kB / 260.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.01836, allocations: 23.98 kB / 260.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.443e-05/0.01844, allocations: 23.91 kB / 260.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.01846, allocations: 7.984 kB / 260.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.423e-05/0.01854, allocations: 74.78 kB / 260.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01854, allocations: 4 kB / 260.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002492/0.01879, allocations: 95.84 kB / 260.4 MB, free: 13.86 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.000134/0.01893, allocations: 84.36 kB / 260.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003588/0.01929, allocations: 356.8 kB / 260.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/0.0193, allocations: 4 kB / 260.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.01948, allocations: 326 kB / 261.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004081/0.01989, allocations: 414.9 kB / 261.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003038/0.02293, allocations: 0.499 MB / 262 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.451e-05/0.02299, allocations: 88.31 kB / 262.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.67e-05/0.02307, allocations: 17.95 kB / 262.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.0232, allocations: 99.33 kB / 262.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.0232, allocations: 0 / 262.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of Templates: time 0.006009/0.02921, allocations: 3.965 MB / 266.2 MB, free: 7.902 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5448191994801164]