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.001862/0.001862, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002113/0.002113, allocations: 194.2 kB / 23.71 MB, free: 4.406 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.566/1.566, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.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 0.001638/0.001638, allocations: 47.92 kB / 370.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2647, allocations: 52.19 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004537/0.2692, allocations: 2.777 MB / 425.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.2704, allocations: 0.6583 MB / 426.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.2706, allocations: 8 kB / 426.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.2708, allocations: 51.44 kB / 426.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.271, allocations: 103.1 kB / 426.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.2712, allocations: 87.88 kB / 426.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004514/0.2717, allocations: 422.1 kB / 427.2 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.2719, allocations: 71.25 kB / 427.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002138/0.2721, allocations: 151.5 kB / 427.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002033/0.2723, allocations: 147.2 kB / 427.5 MB, free: 10 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.958e-05/0.2724, allocations: 32 kB / 427.6 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.468e-05/0.2724, allocations: 32 kB / 427.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.006e-05/0.2725, allocations: 75.75 kB / 427.7 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.2727, allocations: 151.4 kB / 427.8 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004444/0.2731, allocations: 385 kB / 428.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2731, allocations: 3.938 kB / 428.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2731, allocations: 0 / 428.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.2731, allocations: 0 / 428.2 MB, free: 9.34 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.001123/0.2743, allocations: 0.5675 MB / 428.8 MB, free: 8.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2743, allocations: 8.031 kB / 428.8 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.363e-05/0.2744, allocations: 44.69 kB / 428.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.2748, allocations: 221.9 kB / 429 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.2748, allocations: 21.03 kB / 429 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.605e-05/0.2749, allocations: 24.38 kB / 429.1 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006636/0.2756, allocations: 420.5 kB / 429.5 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.2756, allocations: 7.922 kB / 429.5 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/0.2756, allocations: 16 kB / 429.5 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.2756, allocations: 4 kB / 429.5 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000499/0.2761, allocations: 210.5 kB / 429.7 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.2778, allocations: 0.8095 MB / 430.5 MB, free: 6.859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000518/0.2783, allocations: 210.6 kB / 430.7 MB, free: 6.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.2785, allocations: 97 kB / 430.8 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.2786, allocations: 8 kB / 430.8 MB, free: 6.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.2786, allocations: 42.56 kB / 430.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.2786, allocations: 0 / 430.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001308/0.2799, allocations: 399.2 kB / 431.3 MB, free: 6.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.28, allocations: 63.34 kB / 431.3 MB, free: 6.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.2802, allocations: 248.8 kB / 431.6 MB, free: 5.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.2803, allocations: 33.64 kB / 431.6 MB, free: 5.723 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.2804, allocations: 180.5 kB / 431.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.179e-05/0.2805, allocations: 79.36 kB / 431.9 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.1e-05/0.2806, allocations: 41.94 kB / 431.9 MB, free: 5.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.2807, allocations: 338.8 kB / 432.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/0.2809, allocations: 72.42 kB / 432.3 MB, free: 5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002304/0.2812, allocations: 112.6 kB / 432.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004086/0.2816, allocations: 186.5 kB / 432.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.2816, allocations: 0 / 432.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006936/0.2823, allocations: 318.9 kB / 432.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.2823, allocations: 11.94 kB / 432.9 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2823, allocations: 0 / 432.9 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003377/0.2826, allocations: 73.66 kB / 433 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.2828, allocations: 35.98 kB / 433 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00271/0.2856, allocations: 2.784 MB / 435.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.2858, allocations: 19.92 kB / 435.8 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.2858, allocations: 7.984 kB / 435.8 MB, free: 1.23 MB / 334.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.0001679/0.2859, allocations: 145.9 kB / 436 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.44e-05/0.286, allocations: 31.78 kB / 436 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.298e-05/0.286, allocations: 34.2 kB / 436 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.2861, allocations: 4 kB / 436 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2861, allocations: 0 / 436 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2861, allocations: 0 / 436 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.2871, allocations: 0.5835 MB / 436.6 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2871, allocations: 192 / 436.6 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.2872, allocations: 27.98 kB / 436.7 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001972/0.2874, allocations: 73.61 kB / 436.7 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.2875, allocations: 11.92 kB / 436.7 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002578/0.29, allocations: 2.775 MB / 439.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.29, allocations: 0 / 439.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006769/0.2907, allocations: 385 kB / 439.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.618e-05/0.2908, allocations: 23.78 kB / 439.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.2908, allocations: 8 kB / 439.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.2911, allocations: 27.92 kB / 439.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.2911, allocations: 23.95 kB / 440 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.2911, allocations: 8 kB / 440 MB, free: 12.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000184/0.2913, allocations: 176.5 kB / 440.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2913, allocations: 0 / 440.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.2917, allocations: 91.84 kB / 440.2 MB, free: 12.54 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.0001319/0.2919, allocations: 107.2 kB / 440.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000831/0.2927, allocations: 441.1 kB / 440.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2927, allocations: 0 / 440.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004825/0.2932, allocations: 341.1 kB / 441.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.2935, allocations: 45.34 kB / 441.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.2946, allocations: 0.497 MB / 441.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001767/0.2947, allocations: 155.5 kB / 441.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.2948, allocations: 21.94 kB / 441.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.678e-05/0.2949, allocations: 15.44 kB / 441.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2949, allocations: 0 / 441.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of Templates: time 0.008193/0.3031, allocations: 3.888 MB / 445.7 MB, free: 6.996 MB / 350.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.734118353575468]