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.001072/0.001072, allocations: 78.19 kB / 21.42 MB, free: 3.074 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.001473/0.001473, allocations: 151.3 kB / 24.81 MB, free: 8.383 MB / 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.8976/0.8976, allocations: 173.4 MB / 201.5 MB, free: 8.293 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 2.454e-06/2.454e-06, allocations: 4 kB / 268.4 MB, free: 9.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.357e-05/2.602e-05, allocations: 2.312 kB / 268.4 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003229/0.003255, allocations: 2.968 MB / 271.4 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.004288, allocations: 0.6802 MB / 272.1 MB, free: 6.094 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.004441, allocations: 8.656 kB / 272.1 MB, free: 6.086 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.004586, allocations: 51.44 kB / 272.1 MB, free: 6.035 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.004747, allocations: 114 kB / 272.2 MB, free: 5.926 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.004978, allocations: 87.86 kB / 272.3 MB, free: 5.84 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003212/0.005299, allocations: 426 kB / 272.7 MB, free: 5.422 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.005459, allocations: 76.53 kB / 272.8 MB, free: 5.344 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003135/0.005773, allocations: 227.5 kB / 273 MB, free: 5.121 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.005916, allocations: 131.6 kB / 273.2 MB, free: 4.992 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.71e-05/0.005963, allocations: 32 kB / 273.2 MB, free: 4.961 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.952e-05/0.006003, allocations: 32 kB / 273.2 MB, free: 4.93 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.007e-05/0.006053, allocations: 75.72 kB / 273.3 MB, free: 4.855 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.194e-05/0.006145, allocations: 119.7 kB / 273.4 MB, free: 4.738 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002902/0.006435, allocations: 275 kB / 273.7 MB, free: 4.469 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.006438, allocations: 0 / 273.7 MB, free: 4.469 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.006438, allocations: 0 / 273.7 MB, free: 4.469 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.006443, allocations: 0 / 273.7 MB, free: 4.469 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.0006177/0.00706, allocations: 0.6597 MB / 274.4 MB, free: 3.773 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.007096, allocations: 8.031 kB / 274.4 MB, free: 3.766 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.324e-05/0.00717, allocations: 60.7 kB / 274.4 MB, free: 3.707 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.007393, allocations: 227.9 kB / 274.6 MB, free: 3.457 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.007411, allocations: 25.03 kB / 274.7 MB, free: 3.43 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.691e-05/0.007437, allocations: 28.38 kB / 274.7 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005416/0.007979, allocations: 341.6 kB / 275 MB, free: 3.027 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.007989, allocations: 192 / 275 MB, free: 3.027 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.008007, allocations: 12.38 kB / 275 MB, free: 3.016 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.008015, allocations: 7.938 kB / 275 MB, free: 3.008 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.831e-05/0.008113, allocations: 84.45 kB / 275.1 MB, free: 2.93 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009064/0.00902, allocations: 0.8021 MB / 275.9 MB, free: 2.074 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002442/0.009264, allocations: 163.5 kB / 276.1 MB, free: 1.902 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.146e-05/0.009326, allocations: 58.97 kB / 276.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.009345, allocations: 4 kB / 276.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.009374, allocations: 45.33 kB / 276.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.984e-06/0.009376, allocations: 0 / 276.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006496/0.01003, allocations: 294.6 kB / 276.5 MB, free: 1.484 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.01005, allocations: 55.41 kB / 276.5 MB, free: 1.418 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001839/0.01024, allocations: 276.2 kB / 276.8 MB, free: 1.137 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.01026, allocations: 29.7 kB / 276.8 MB, free: 1.102 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.01037, allocations: 239.2 kB / 277.1 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.556e-05/0.01041, allocations: 71.36 kB / 277.1 MB, free: 0.793 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.245e-05/0.01049, allocations: 55.52 kB / 277.2 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.01062, allocations: 0.5156 MB / 277.7 MB, free: 204 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.837e-05/0.01067, allocations: 24.39 kB / 277.7 MB, free: 180 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.946e-05/0.01074, allocations: 63.95 kB / 277.8 MB, free: 104 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.01087, allocations: 93.05 kB / 277.9 MB, free: 16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.01088, allocations: 4 kB / 277.9 MB, free: 15.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003115/0.01119, allocations: 230.4 kB / 278.1 MB, free: 15.76 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.0112, allocations: 8.062 kB / 278.1 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.01121, allocations: 0 / 278.1 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002682/0.01148, allocations: 95.3 kB / 278.2 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.01159, allocations: 35.97 kB / 278.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001808/0.0134, allocations: 3.624 MB / 281.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.0135, allocations: 27.89 kB / 281.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.01352, allocations: 4 kB / 281.9 MB, free: 11.73 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.0003364/0.01385, allocations: 172.5 kB / 282.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.896e-05/0.0139, allocations: 35.81 kB / 282.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.01393, allocations: 26.27 kB / 282.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.01393, allocations: 4 kB / 282.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.01394, allocations: 0 / 282.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.01394, allocations: 0 / 282.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005398/0.01448, allocations: 0.515 MB / 282.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.01449, allocations: 0 / 282.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.231e-05/0.01456, allocations: 19.98 kB / 282.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001963/0.01475, allocations: 91.36 kB / 282.8 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.01476, allocations: 8 kB / 282.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001635/0.0164, allocations: 3.622 MB / 286.4 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.0164, allocations: 0 / 286.4 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/0.0167, allocations: 343.5 kB / 286.7 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.928e-05/0.01673, allocations: 27.78 kB / 286.8 MB, free: 6.559 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.01675, allocations: 4 kB / 286.8 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.01689, allocations: 28.02 kB / 286.8 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.715e-05/0.01695, allocations: 27.94 kB / 286.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.01696, allocations: 4 kB / 286.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001063/0.01707, allocations: 193.1 kB / 287 MB, free: 6.305 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01707, allocations: 0 / 287 MB, free: 6.305 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003562/0.01743, allocations: 103.8 kB / 287.1 MB, free: 6.203 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.0001068/0.01753, allocations: 107.1 kB / 287.2 MB, free: 6.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004089/0.01794, allocations: 477.9 kB / 287.7 MB, free: 5.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.01795, allocations: 0 / 287.7 MB, free: 5.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002415/0.01819, allocations: 419.2 kB / 288.1 MB, free: 5.141 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.0185, allocations: 44.73 kB / 288.1 MB, free: 5.098 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008684/0.01937, allocations: 484.5 kB / 288.6 MB, free: 4.598 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.757e-05/0.01944, allocations: 92.22 kB / 288.7 MB, free: 4.488 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.991e-05/0.01952, allocations: 17.95 kB / 288.7 MB, free: 4.469 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/0.01967, allocations: 126.2 kB / 288.8 MB, free: 4.344 MB / 266.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01967, allocations: 0 / 288.8 MB, free: 4.344 MB / 266.7 MB Notification: Performance of Templates: time 0.007093/0.02676, allocations: 3.83 MB / 292.7 MB, free: 0.582 MB / 266.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.8078112630173564]