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.0013/0.0013, allocations: 82.36 kB / 20.68 MB, free: 1.023 MB / 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.001398/0.001398, allocations: 150.7 kB / 23.94 MB, free: 4.168 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.429/1.429, allocations: 173.4 MB / 200.4 MB, free: 12.87 MB / 190.1 MB " [Timeout remaining time 178] 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.523e-06/1.523e-06, allocations: 0 / 318.9 MB, free: 3.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.384e-05/2.536e-05, allocations: 2.281 kB / 318.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003559/0.003584, allocations: 2.764 MB / 321.7 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.004752, allocations: 0.6652 MB / 322.4 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.004917, allocations: 9.438 kB / 322.4 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.005095, allocations: 54.14 kB / 322.4 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.00527, allocations: 111.8 kB / 322.5 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.00554, allocations: 96.78 kB / 322.6 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000361/0.005901, allocations: 426.7 kB / 323 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.006079, allocations: 74.66 kB / 323.1 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002997/0.006379, allocations: 227.4 kB / 323.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001814/0.00656, allocations: 124 kB / 323.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.623e-05/0.006616, allocations: 32.56 kB / 323.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.285e-05/0.006679, allocations: 31.38 kB / 323.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.99e-05/0.006749, allocations: 75.06 kB / 323.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.006884, allocations: 123.7 kB / 323.7 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004401/0.007325, allocations: 398.4 kB / 324.1 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.007329, allocations: 4.594 kB / 324.1 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.00733, allocations: 0 / 324.1 MB, free: 384 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.007338, allocations: 5.094 kB / 324.1 MB, free: 380 kB / 286.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.001297/0.008635, allocations: 0.5649 MB / 324.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.008685, allocations: 9.844 kB / 324.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.00879, allocations: 40.62 kB / 324.7 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004782/0.009268, allocations: 223.1 kB / 325 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.009298, allocations: 20.03 kB / 325 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.643e-05/0.009345, allocations: 25.58 kB / 325 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007012/0.01005, allocations: 422.9 kB / 325.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.01006, allocations: 192 / 325.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.637e-05/0.0101, allocations: 11.88 kB / 325.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.01011, allocations: 6.875 kB / 325.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005074/0.01061, allocations: 217.6 kB / 325.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001758/0.01237, allocations: 0.8086 MB / 326.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005659/0.01294, allocations: 198 kB / 326.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.0132, allocations: 103.5 kB / 326.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.01323, allocations: 2.219 kB / 326.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.01327, allocations: 40.88 kB / 326.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.372e-06/0.01327, allocations: 1.125 kB / 326.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001424/0.01469, allocations: 403.8 kB / 327.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.01475, allocations: 57.66 kB / 327.2 MB, free: 14.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003355/0.01508, allocations: 245.7 kB / 327.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.182e-05/0.01511, allocations: 31.08 kB / 327.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.01527, allocations: 185.6 kB / 327.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.511e-05/0.01534, allocations: 72.81 kB / 327.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.676e-05/0.01544, allocations: 49.8 kB / 327.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.01561, allocations: 338 kB / 328.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.01582, allocations: 76.38 kB / 328.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.01608, allocations: 110.8 kB / 328.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004441/0.01653, allocations: 182.9 kB / 328.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.01653, allocations: 1.094 kB / 328.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007246/0.01726, allocations: 323.8 kB / 328.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.01728, allocations: 6.422 kB / 328.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.01728, allocations: 1.25 kB / 328.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003/0.01758, allocations: 69.61 kB / 328.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.01779, allocations: 39.06 kB / 328.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002971/0.02076, allocations: 2.777 MB / 331.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/0.02102, allocations: 32.06 kB / 331.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.02104, allocations: 5.406 kB / 331.7 MB, free: 10.62 MB / 302.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.0002354/0.02127, allocations: 154.6 kB / 331.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.142e-05/0.02135, allocations: 25.95 kB / 331.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.473e-05/0.02141, allocations: 29.98 kB / 332 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.02141, allocations: 2.75 kB / 332 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.02143, allocations: 1.656 kB / 332 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.02143, allocations: 1.312 kB / 332 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.02258, allocations: 0.5857 MB / 332.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.02258, allocations: 1.25 kB / 332.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/0.02273, allocations: 24.38 kB / 332.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002188/0.02294, allocations: 69.08 kB / 332.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.02296, allocations: 6 kB / 332.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002604/0.02557, allocations: 2.779 MB / 335.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.02557, allocations: 0 / 335.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007436/0.02631, allocations: 380.6 kB / 335.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.666e-05/0.02638, allocations: 24.77 kB / 335.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.02642, allocations: 6.094 kB / 335.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000286/0.0267, allocations: 33.97 kB / 335.9 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.331e-05/0.0268, allocations: 20.75 kB / 335.9 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.02682, allocations: 5.844 kB / 335.9 MB, free: 7.113 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002189/0.02703, allocations: 173.5 kB / 336 MB, free: 7.008 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02703, allocations: 0 / 336 MB, free: 7.008 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005324/0.02757, allocations: 100.1 kB / 336.1 MB, free: 6.984 MB / 302.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.0001933/0.02776, allocations: 104 kB / 336.2 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008746/0.02863, allocations: 443.5 kB / 336.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.02864, allocations: 1.344 kB / 336.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004921/0.02913, allocations: 338.2 kB / 337 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.0295, allocations: 59.19 kB / 337.1 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009312/0.03044, allocations: 478.6 kB / 337.5 MB, free: 5.988 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001822/0.03062, allocations: 157 kB / 337.7 MB, free: 5.902 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.871e-05/0.03072, allocations: 26.98 kB / 337.7 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.668e-05/0.03077, allocations: 19.91 kB / 337.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.03077, allocations: 0 / 337.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of Templates: time 0.008343/0.03912, allocations: 3.542 MB / 341.3 MB, free: 4.141 MB / 302.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.3182240054011345]