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.001501/0.001501, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001833/0.001833, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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 0.9841/0.9841, allocations: 173.3 MB / 201.1 MB, free: 9.285 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.532e-06/1.532e-06, allocations: 0 / 268 MB, free: 6.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.543e-05/2.696e-05, allocations: 2.312 kB / 268 MB, free: 6.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00337/0.003397, allocations: 3.018 MB / 271 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.004632, allocations: 0.6737 MB / 271.7 MB, free: 2.664 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002252/0.004857, allocations: 4 kB / 271.7 MB, free: 2.66 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.005064, allocations: 59.44 kB / 271.7 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002206/0.005284, allocations: 118.9 kB / 271.9 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.005631, allocations: 87.86 kB / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003467/0.005978, allocations: 422 kB / 272.4 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.006144, allocations: 76.52 kB / 272.4 MB, free: 1.906 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.006412, allocations: 231.5 kB / 272.7 MB, free: 1.68 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.006545, allocations: 131.5 kB / 272.8 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.703e-05/0.006593, allocations: 36 kB / 272.8 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.075e-05/0.006633, allocations: 32 kB / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.892e-05/0.006682, allocations: 71.73 kB / 272.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.413e-05/0.006776, allocations: 127.7 kB / 273.1 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002824/0.007059, allocations: 263 kB / 273.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.007063, allocations: 0 / 273.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.007064, allocations: 0 / 273.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.007072, allocations: 0 / 273.3 MB, free: 1.031 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.0007265/0.007798, allocations: 0.6558 MB / 274 MB, free: 348 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.007838, allocations: 8.031 kB / 274 MB, free: 340 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.603e-05/0.007924, allocations: 64.7 kB / 274 MB, free: 276 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.008208, allocations: 227.9 kB / 274.3 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.765e-05/0.008246, allocations: 21.08 kB / 274.3 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/0.008277, allocations: 32.38 kB / 274.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003999/0.008676, allocations: 353.5 kB / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.008688, allocations: 192 / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.354e-05/0.008711, allocations: 12.38 kB / 274.7 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.008724, allocations: 11.94 kB / 274.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.008894, allocations: 103.8 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.01005, allocations: 0.8445 MB / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003234/0.01037, allocations: 179.1 kB / 275.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.237e-05/0.01045, allocations: 63.66 kB / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.01047, allocations: 4 kB / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.0105, allocations: 41.39 kB / 275.9 MB, free: 14.24 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 6.923e-06/0.01051, allocations: 0 / 275.9 MB, free: 14.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006542/0.01117, allocations: 315.9 kB / 276.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000343/0.01151, allocations: 55.41 kB / 276.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.0117, allocations: 284.3 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.01172, allocations: 29.7 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.01186, allocations: 231.2 kB / 276.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.988e-05/0.01191, allocations: 75.38 kB / 276.9 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.939e-05/0.01198, allocations: 47.59 kB / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.01212, allocations: 0.5078 MB / 277.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.279e-05/0.01218, allocations: 40.39 kB / 277.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.605e-05/0.01227, allocations: 71.95 kB / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001443/0.01241, allocations: 111 kB / 277.6 MB, free: 12.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.01242, allocations: 0 / 277.6 MB, free: 12.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003097/0.01272, allocations: 249.2 kB / 277.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.01274, allocations: 4 kB / 277.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.01275, allocations: 4.062 kB / 277.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002931/0.01304, allocations: 103.2 kB / 278 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.01315, allocations: 35.92 kB / 278 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.01513, allocations: 3.68 MB / 281.7 MB, free: 8.062 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.01524, allocations: 23.83 kB / 281.7 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.01525, allocations: 8.062 kB / 281.7 MB, free: 8.031 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 0.0001234/0.01537, allocations: 168.5 kB / 281.9 MB, free: 7.855 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.494e-05/0.01543, allocations: 35.81 kB / 281.9 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.01546, allocations: 34.27 kB / 282 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.01547, allocations: 0 / 282 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.01548, allocations: 4 kB / 282 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.01548, allocations: 7.922 kB / 282 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005816/0.01606, allocations: 0.5476 MB / 282.5 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.01607, allocations: 0 / 282.5 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.446e-05/0.01613, allocations: 23.92 kB / 282.6 MB, free: 7.152 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002035/0.01633, allocations: 99.48 kB / 282.7 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.01635, allocations: 4 kB / 282.7 MB, free: 7.043 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001888/0.01823, allocations: 3.68 MB / 286.3 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.01824, allocations: 0 / 286.3 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000303/0.01854, allocations: 366.5 kB / 286.7 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.814e-05/0.01857, allocations: 27.78 kB / 286.7 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.01858, allocations: 8 kB / 286.7 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.01869, allocations: 24.02 kB / 286.8 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.218e-05/0.01876, allocations: 27.89 kB / 286.8 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.01877, allocations: 8 kB / 286.8 MB, free: 2.637 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001012/0.01887, allocations: 197.1 kB / 287 MB, free: 2.441 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01887, allocations: 0 / 287 MB, free: 2.441 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002854/0.01916, allocations: 99.84 kB / 287.1 MB, free: 2.344 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.0001136/0.01927, allocations: 103.2 kB / 287.2 MB, free: 2.234 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004751/0.01975, allocations: 482.8 kB / 287.7 MB, free: 1.727 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.01975, allocations: 0 / 287.7 MB, free: 1.727 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.01996, allocations: 435.2 kB / 288.1 MB, free: 1.262 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.02023, allocations: 44.73 kB / 288.1 MB, free: 1.219 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008585/0.02109, allocations: 489.8 kB / 288.6 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.636e-05/0.02114, allocations: 92.31 kB / 288.7 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.874e-05/0.02121, allocations: 17.95 kB / 288.7 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.525e-05/0.02126, allocations: 20.48 kB / 288.7 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.02126, allocations: 0 / 288.7 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of Templates: time 0.006278/0.02754, allocations: 3.759 MB / 292.5 MB, free: 12.86 MB / 282.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 -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.9580693980678916]