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.001457/0.001457, allocations: 84.66 kB / 20.95 MB, free: 3.449 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.001485/0.001485, allocations: 149.1 kB / 24.25 MB, free: 156 kB / 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 1.45/1.45, allocations: 173.3 MB / 200.8 MB, free: 9.289 MB / 186.7 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.363e-06/1.363e-06, allocations: 0 / 267.3 MB, free: 6.695 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.64e-05/2.776e-05, allocations: 6.312 kB / 267.3 MB, free: 6.688 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.006105/0.006133, allocations: 2.779 MB / 270.1 MB, free: 3.895 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.007997, allocations: 0.6659 MB / 270.8 MB, free: 3.223 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003252/0.008322, allocations: 8 kB / 270.8 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002804/0.008603, allocations: 59.38 kB / 270.8 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004084/0.009011, allocations: 111 kB / 270.9 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004026/0.009414, allocations: 91.86 kB / 271 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007406/0.01015, allocations: 422 kB / 271.4 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.01042, allocations: 76.52 kB / 271.5 MB, free: 2.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005462/0.01097, allocations: 227.5 kB / 271.7 MB, free: 2.242 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003438/0.01131, allocations: 123.6 kB / 271.9 MB, free: 2.121 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.01142, allocations: 32 kB / 271.9 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.413e-05/0.01151, allocations: 32 kB / 271.9 MB, free: 2.059 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.01162, allocations: 71.73 kB / 272 MB, free: 1.988 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002367/0.01186, allocations: 127.7 kB / 272.1 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007072/0.01257, allocations: 410.6 kB / 272.5 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.01257, allocations: 0 / 272.5 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.01257, allocations: 0 / 272.5 MB, free: 1.461 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.01258, allocations: 0 / 272.5 MB, free: 1.461 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.001465/0.01405, allocations: 0.5598 MB / 273.1 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.0141, allocations: 12.03 kB / 273.1 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.01428, allocations: 60.7 kB / 273.2 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000551/0.01483, allocations: 225.1 kB / 273.4 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.22e-05/0.01487, allocations: 24.97 kB / 273.4 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.954e-05/0.01494, allocations: 28.38 kB / 273.4 MB, free: 0.5 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008594/0.0158, allocations: 416.9 kB / 273.8 MB, free: 52 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.01581, allocations: 192 / 273.8 MB, free: 52 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.742e-05/0.01585, allocations: 12.38 kB / 273.8 MB, free: 40 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.01587, allocations: 11.94 kB / 273.9 MB, free: 28 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000565/0.01643, allocations: 210.5 kB / 274.1 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.0182, allocations: 0.818 MB / 274.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005275/0.01873, allocations: 210.6 kB / 275.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002377/0.01896, allocations: 92.81 kB / 275.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.01899, allocations: 4 kB / 275.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.01902, allocations: 30.56 kB / 275.2 MB, free: 14.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.152e-06/0.01902, allocations: 4 kB / 275.2 MB, free: 14.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001323/0.02035, allocations: 418.2 kB / 275.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.0204, allocations: 55.41 kB / 275.7 MB, free: 14.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/0.02069, allocations: 253.7 kB / 275.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/0.02072, allocations: 25.7 kB / 276 MB, free: 13.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.02088, allocations: 188.5 kB / 276.1 MB, free: 13.63 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.021, allocations: 75.36 kB / 276.2 MB, free: 13.56 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.02113, allocations: 45.89 kB / 276.3 MB, free: 13.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.02134, allocations: 338.8 kB / 276.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.02156, allocations: 76.42 kB / 276.7 MB, free: 13.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.02179, allocations: 107.5 kB / 276.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004667/0.02226, allocations: 186.5 kB / 276.9 MB, free: 12.79 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.02226, allocations: 0 / 276.9 MB, free: 12.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008667/0.02313, allocations: 327.6 kB / 277.3 MB, free: 12.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.02315, allocations: 8 kB / 277.3 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.02315, allocations: 0 / 277.3 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004518/0.0236, allocations: 109.6 kB / 277.4 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.0238, allocations: 39.91 kB / 277.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002919/0.02672, allocations: 2.799 MB / 280.2 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.02692, allocations: 27.81 kB / 280.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.02694, allocations: 4 kB / 280.3 MB, free: 9.262 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.0001591/0.0271, allocations: 137.8 kB / 280.4 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.569e-05/0.02716, allocations: 27.86 kB / 280.4 MB, free: 9.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.57e-05/0.02722, allocations: 34.27 kB / 280.4 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.02722, allocations: 0 / 280.4 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.02723, allocations: 12 kB / 280.5 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.02724, allocations: 3.938 kB / 280.5 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.02832, allocations: 0.5701 MB / 281 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.02832, allocations: 0 / 281 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.02847, allocations: 31.91 kB / 281.1 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003732/0.02884, allocations: 97.72 kB / 281.2 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.02886, allocations: 8 kB / 281.2 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00282/0.03168, allocations: 2.787 MB / 284 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.03168, allocations: 4.031 kB / 284 MB, free: 5.281 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007285/0.03241, allocations: 384.5 kB / 284.3 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.889e-05/0.03246, allocations: 27.84 kB / 284.4 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.03248, allocations: 0 / 284.4 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002727/0.03276, allocations: 31.97 kB / 284.4 MB, free: 4.828 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.03283, allocations: 27.84 kB / 284.4 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.03285, allocations: 8 kB / 284.4 MB, free: 4.793 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001955/0.03304, allocations: 177.2 kB / 284.6 MB, free: 4.621 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.03304, allocations: 0 / 284.6 MB, free: 4.621 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004029/0.03345, allocations: 99.78 kB / 284.7 MB, free: 4.523 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.0001328/0.03358, allocations: 103.2 kB / 284.8 MB, free: 4.414 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008465/0.03443, allocations: 436.6 kB / 285.2 MB, free: 3.965 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.03443, allocations: 0 / 285.2 MB, free: 3.965 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005115/0.03494, allocations: 337 kB / 285.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.03531, allocations: 52.59 kB / 285.6 MB, free: 3.559 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009034/0.03621, allocations: 481.2 kB / 286.1 MB, free: 3.062 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.03641, allocations: 163.4 kB / 286.2 MB, free: 2.879 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.312e-05/0.0365, allocations: 21.94 kB / 286.3 MB, free: 2.859 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.379e-05/0.03656, allocations: 16.5 kB / 286.3 MB, free: 2.844 MB / 266.7 MB Notification: Performance of SimCode: time 4.2e-07/0.03656, allocations: 0 / 286.3 MB, free: 2.844 MB / 266.7 MB Notification: Performance of Templates: time 0.008475/0.04503, allocations: 3.559 MB / 289.8 MB, free: 15.33 MB / 282.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=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.270884467987344]