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.0007802/0.0007802, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001083/0.001863, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006405/0.0006405, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009286/0.001569, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8339/0.8339, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1832/1.017, allocations: 52.48 MB / 238.5 MB, free: 7.629 MB / 234.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.432e-06/1.432e-06, allocations: 0 / 239.8 MB, free: 6.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.151e-05/1.294e-05, allocations: 6.656 kB / 239.8 MB, free: 6.344 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.006356/0.006368, allocations: 3.023 MB / 242.8 MB, free: 3.32 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.007459, allocations: 0.6994 MB / 243.5 MB, free: 2.621 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.007587, allocations: 4 kB / 243.5 MB, free: 2.617 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.0077, allocations: 64.66 kB / 243.5 MB, free: 2.555 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.007897, allocations: 112 kB / 243.7 MB, free: 2.445 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001839/0.008081, allocations: 94.8 kB / 243.8 MB, free: 2.355 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003555/0.008436, allocations: 425.9 kB / 244.2 MB, free: 1.938 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003201/0.01164, allocations: 74.25 kB / 244.2 MB, free: 1.859 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003606/0.012, allocations: 264 kB / 244.5 MB, free: 1.602 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.01215, allocations: 119.6 kB / 244.6 MB, free: 1.484 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.974e-05/0.0122, allocations: 32 kB / 244.6 MB, free: 1.453 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.659e-05/0.01225, allocations: 32.81 kB / 244.7 MB, free: 1.422 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.912e-05/0.0123, allocations: 51.81 kB / 244.7 MB, free: 1.371 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.217e-05/0.01239, allocations: 103.8 kB / 244.8 MB, free: 1.27 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.01266, allocations: 252 kB / 245.1 MB, free: 1.02 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.01267, allocations: 4 kB / 245.1 MB, free: 1.016 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.01267, allocations: 0.9062 kB / 245.1 MB, free: 1.016 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.01268, allocations: 0 / 245.1 MB, free: 1.016 MB / 234.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.0006928/0.01337, allocations: 0.6041 MB / 245.7 MB, free: 400 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.0134, allocations: 12.03 kB / 245.7 MB, free: 388 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.947e-05/0.01347, allocations: 50.86 kB / 245.7 MB, free: 340 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.01369, allocations: 197.1 kB / 245.9 MB, free: 116 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.01371, allocations: 21.03 kB / 246 MB, free: 96 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.574e-05/0.01375, allocations: 33.84 kB / 246 MB, free: 64 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003048/0.01405, allocations: 345.5 kB / 246.3 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.01406, allocations: 192 / 246.3 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.059e-05/0.01408, allocations: 12.38 kB / 246.3 MB, free: 15.67 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.01409, allocations: 8.562 kB / 246.3 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.0142, allocations: 72.55 kB / 246.4 MB, free: 15.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003947/0.01815, allocations: 0.6414 MB / 247.1 MB, free: 14.92 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002475/0.0184, allocations: 155 kB / 247.2 MB, free: 14.77 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.843e-05/0.01846, allocations: 56.41 kB / 247.3 MB, free: 14.71 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.01847, allocations: 5.656 kB / 247.3 MB, free: 14.71 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.01849, allocations: 34.56 kB / 247.3 MB, free: 14.66 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.482e-06/0.0185, allocations: 0 / 247.3 MB, free: 14.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005114/0.01901, allocations: 265 kB / 247.6 MB, free: 14.39 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.195e-05/0.01903, allocations: 55.41 kB / 247.6 MB, free: 14.33 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.01916, allocations: 228.9 kB / 247.8 MB, free: 14.1 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.01918, allocations: 29.7 kB / 247.9 MB, free: 14.06 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.955e-05/0.01925, allocations: 168.5 kB / 248 MB, free: 13.89 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.933e-05/0.01929, allocations: 75.31 kB / 248.1 MB, free: 13.82 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.223e-05/0.01935, allocations: 45.92 kB / 248.2 MB, free: 13.76 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.179e-05/0.01942, allocations: 338.7 kB / 248.5 MB, free: 13.42 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.798e-05/0.01946, allocations: 28.45 kB / 248.5 MB, free: 13.39 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.527e-05/0.01951, allocations: 47.48 kB / 248.6 MB, free: 13.34 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.01962, allocations: 93.5 kB / 248.7 MB, free: 13.24 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01962, allocations: 0 / 248.7 MB, free: 13.24 MB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002337/0.01986, allocations: 187 kB / 248.8 MB, free: 13.05 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.01987, allocations: 4 kB / 248.8 MB, free: 13.04 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.01987, allocations: 4.062 kB / 248.8 MB, free: 13.04 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002443/0.02012, allocations: 81.66 kB / 248.9 MB, free: 12.95 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.02025, allocations: 51.91 kB / 249 MB, free: 12.9 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004384/0.02463, allocations: 2.486 MB / 251.5 MB, free: 10.24 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.981e-05/0.02473, allocations: 27.91 kB / 251.5 MB, free: 10.21 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.02475, allocations: 7.984 kB / 251.5 MB, free: 10.2 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 8.062e-05/0.02483, allocations: 121.8 kB / 251.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.109e-05/0.02487, allocations: 23.98 kB / 251.6 MB, free: 10.05 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.661e-05/0.02489, allocations: 26.27 kB / 251.7 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.0249, allocations: 0 / 251.7 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.0249, allocations: 11.88 kB / 251.7 MB, free: 10.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.0249, allocations: 0 / 251.7 MB, free: 10.02 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004477/0.02535, allocations: 390.7 kB / 252.1 MB, free: 9.602 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.02535, allocations: 0 / 252.1 MB, free: 9.602 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.011e-05/0.02543, allocations: 27.92 kB / 252.1 MB, free: 9.574 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.825e-05/0.02546, allocations: 31.78 kB / 252.1 MB, free: 9.543 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001861/0.02565, allocations: 77.66 kB / 252.2 MB, free: 9.461 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.02566, allocations: 4 kB / 252.2 MB, free: 9.457 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00424/0.0299, allocations: 2.486 MB / 254.7 MB, free: 6.797 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.0299, allocations: 0 / 254.7 MB, free: 6.797 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002227/0.03012, allocations: 249.6 kB / 254.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.03014, allocations: 11.98 kB / 254.9 MB, free: 6.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.03029, allocations: 28.02 kB / 255 MB, free: 6.492 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.03034, allocations: 31.83 kB / 255 MB, free: 6.461 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.03035, allocations: 4 kB / 255 MB, free: 6.457 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.458e-05/0.03041, allocations: 74.78 kB / 255.1 MB, free: 6.383 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03041, allocations: 0 / 255.1 MB, free: 6.383 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002797/0.03069, allocations: 99.78 kB / 255.2 MB, free: 6.285 MB / 250.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 9.553e-05/0.03079, allocations: 88.42 kB / 255.3 MB, free: 6.188 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003262/0.03111, allocations: 358.7 kB / 255.6 MB, free: 5.816 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/0.03112, allocations: 4 kB / 255.6 MB, free: 5.812 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002323/0.03136, allocations: 325.8 kB / 255.9 MB, free: 5.465 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003603/0.03172, allocations: 418.5 kB / 256.3 MB, free: 4.977 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00615/0.03787, allocations: 0.493 MB / 256.8 MB, free: 4.453 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.613e-05/0.03791, allocations: 92.22 kB / 256.9 MB, free: 4.344 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.802e-05/0.03797, allocations: 21.94 kB / 256.9 MB, free: 4.324 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.03809, allocations: 95.34 kB / 257 MB, free: 4.23 MB / 250.7 MB Notification: Performance of SimCode: time 9.12e-07/0.03809, allocations: 0 / 257 MB, free: 4.23 MB / 250.7 MB Notification: Performance of Templates: time 0.007335/0.04542, allocations: 3.94 MB / 261 MB, free: 364 kB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.541770367883146]