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.001786/0.001786, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 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.002091/0.002091, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 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.54/1.54, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001603/0.001603, allocations: 55.92 kB / 373.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1024, allocations: 53.32 MB / 426.8 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004555/0.107, allocations: 3.034 MB / 429.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.1084, allocations: 0.7556 MB / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.1086, allocations: 7.938 kB / 430.6 MB, free: 476 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001873/0.1088, allocations: 55.38 kB / 430.7 MB, free: 420 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.109, allocations: 107.1 kB / 430.8 MB, free: 312 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.1093, allocations: 99.81 kB / 430.9 MB, free: 212 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2061/0.3154, allocations: 410.1 kB / 431.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003172/0.3157, allocations: 73.3 kB / 431.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004568/0.3162, allocations: 163.8 kB / 431.5 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.3164, allocations: 165.3 kB / 431.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.011e-05/0.3165, allocations: 31.47 kB / 431.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.3166, allocations: 37.16 kB / 431.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.47e-05/0.3166, allocations: 76.02 kB / 431.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.3168, allocations: 177.6 kB / 432 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004911/0.3173, allocations: 394.5 kB / 432.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.3173, allocations: 0 / 432.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3173, allocations: 0 / 432.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.3173, allocations: 0.625 kB / 432.4 MB, free: 7.98 MB / 350.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.001042/0.3183, allocations: 0.6416 MB / 433 MB, free: 7.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.3184, allocations: 10.12 kB / 433 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002144/0.3186, allocations: 49.22 kB / 433.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003329/0.3189, allocations: 285.8 kB / 433.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.79e-05/0.319, allocations: 17.94 kB / 433.4 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.319, allocations: 34.98 kB / 433.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005964/0.3196, allocations: 254.7 kB / 433.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.3196, allocations: 3.938 kB / 433.6 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.692e-05/0.3196, allocations: 16.98 kB / 433.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.3197, allocations: 6.844 kB / 433.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000492/0.3201, allocations: 217.1 kB / 433.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.3218, allocations: 0.9721 MB / 434.8 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005125/0.3223, allocations: 281 kB / 435.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002332/0.3226, allocations: 100.9 kB / 435.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.3226, allocations: 3.031 kB / 435.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.3226, allocations: 32.78 kB / 435.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.275e-06/0.3226, allocations: 0 / 435.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001398/0.324, allocations: 0.5545 MB / 435.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/0.3241, allocations: 63.06 kB / 435.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/0.3243, allocations: 262.4 kB / 436.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.3244, allocations: 31.55 kB / 436.2 MB, free: 6.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.688e-05/0.3245, allocations: 182 kB / 436.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.483e-05/0.3245, allocations: 73.91 kB / 436.4 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.123e-05/0.3246, allocations: 48.45 kB / 436.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.847e-05/0.3246, allocations: 331.8 kB / 436.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.3248, allocations: 85.67 kB / 436.9 MB, free: 5.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.3251, allocations: 107.7 kB / 437 MB, free: 5.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003902/0.3255, allocations: 182.3 kB / 437.1 MB, free: 5.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3255, allocations: 4 kB / 437.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006641/0.3261, allocations: 322.8 kB / 437.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.3261, allocations: 5.688 kB / 437.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.3261, allocations: 2.016 kB / 437.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003036/0.3264, allocations: 77.69 kB / 437.5 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.3267, allocations: 38.2 kB / 437.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.3289, allocations: 3.052 MB / 440.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/0.3291, allocations: 24.67 kB / 440.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.3292, allocations: 5.719 kB / 440.7 MB, free: 2.664 MB / 350.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.0001583/0.3293, allocations: 147.3 kB / 440.8 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.866e-05/0.3294, allocations: 32.88 kB / 440.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.441e-05/0.3294, allocations: 27.3 kB / 440.9 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3294, allocations: 6.375 kB / 440.9 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.3294, allocations: 3.688 kB / 440.9 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3295, allocations: 0.6562 kB / 440.9 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.3305, allocations: 0.6855 MB / 441.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3305, allocations: 2.062 kB / 441.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.3306, allocations: 27.12 kB / 441.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002078/0.3309, allocations: 83.78 kB / 441.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.3309, allocations: 1.828 kB / 441.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002118/0.333, allocations: 3.036 MB / 444.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.333, allocations: 1.609 kB / 444.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007035/0.3337, allocations: 391.7 kB / 445.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.875e-05/0.3338, allocations: 102.2 kB / 445.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.063e-05/0.3338, allocations: 8.344 kB / 445.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.3341, allocations: 30.28 kB / 445.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.683e-05/0.3342, allocations: 23.94 kB / 445.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.3342, allocations: 4.594 kB / 445.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002134/0.3344, allocations: 187.8 kB / 445.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3344, allocations: 0 / 445.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004267/0.3348, allocations: 96.08 kB / 445.5 MB, free: 14.54 MB / 366.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.0001716/0.335, allocations: 106.8 kB / 445.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008937/0.3359, allocations: 433.7 kB / 446.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3359, allocations: 1.156 kB / 446.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005048/0.3364, allocations: 347.9 kB / 446.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.3368, allocations: 53.09 kB / 446.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.3379, allocations: 0.5073 MB / 447 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004488/0.3383, allocations: 0.7647 MB / 447.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.3384, allocations: 18.55 kB / 447.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.698e-05/0.3385, allocations: 23.89 kB / 447.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3385, allocations: 0 / 447.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of Templates: time 0.009143/0.3476, allocations: 3.786 MB / 451.6 MB, free: 12.61 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.82370039075613]