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.0007948/0.0007948, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.003211/0.003211, allocations: 160.7 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.8559/0.8559, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.483e-06/1.483e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.547e-05/2.695e-05, allocations: 2.281 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002962/0.002989, allocations: 2.815 MB / 328.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.004191, allocations: 0.7283 MB / 329.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.004357, allocations: 11.94 kB / 329.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.004501, allocations: 55.42 kB / 329.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.004654, allocations: 111 kB / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.004982, allocations: 103.8 kB / 329.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.005353, allocations: 433.8 kB / 330.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.005521, allocations: 67.64 kB / 330.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003118/0.005832, allocations: 239.5 kB / 330.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.005963, allocations: 119.7 kB / 330.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.811e-05/0.006001, allocations: 36 kB / 330.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.825e-05/0.006069, allocations: 35.94 kB / 330.6 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.205e-05/0.006112, allocations: 75.67 kB / 330.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.277e-05/0.006194, allocations: 123.7 kB / 330.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000332/0.006526, allocations: 402.8 kB / 331.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.006529, allocations: 0 / 331.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.00653, allocations: 3.938 kB / 331.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.006537, allocations: 0 / 331.2 MB, free: 10.06 MB / 298.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.0006774/0.007214, allocations: 0.5676 MB / 331.7 MB, free: 9.461 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.007252, allocations: 8.031 kB / 331.7 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.007388, allocations: 52.69 kB / 331.8 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.007692, allocations: 229.1 kB / 332 MB, free: 9.152 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.007709, allocations: 21.03 kB / 332 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.497e-05/0.007734, allocations: 24.38 kB / 332.1 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.008136, allocations: 416.8 kB / 332.5 MB, free: 8.656 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.008147, allocations: 192 / 332.5 MB, free: 8.656 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/0.008169, allocations: 12.38 kB / 332.5 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.008176, allocations: 11.94 kB / 332.5 MB, free: 8.633 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002814/0.008458, allocations: 218.5 kB / 332.7 MB, free: 8.422 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009592/0.009417, allocations: 0.8024 MB / 333.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003243/0.009741, allocations: 210.5 kB / 333.7 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.009868, allocations: 100.8 kB / 333.8 MB, free: 7.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.009884, allocations: 0 / 333.8 MB, free: 7.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.009906, allocations: 38.56 kB / 333.9 MB, free: 7.203 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.123e-06/0.009907, allocations: 0 / 333.9 MB, free: 7.203 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007101/0.01062, allocations: 414.1 kB / 334.3 MB, free: 6.789 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.01065, allocations: 51.41 kB / 334.3 MB, free: 6.727 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.01082, allocations: 249.7 kB / 334.6 MB, free: 6.477 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.01083, allocations: 29.7 kB / 334.6 MB, free: 6.441 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.765e-05/0.01092, allocations: 192.5 kB / 334.8 MB, free: 6.246 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.39e-05/0.01095, allocations: 71.39 kB / 334.8 MB, free: 6.176 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.157e-05/0.01101, allocations: 41.94 kB / 334.9 MB, free: 6.125 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.102e-05/0.01109, allocations: 338.8 kB / 335.2 MB, free: 5.785 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.01119, allocations: 76.42 kB / 335.3 MB, free: 5.711 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.01131, allocations: 103.5 kB / 335.4 MB, free: 5.602 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002193/0.01153, allocations: 191.1 kB / 335.6 MB, free: 5.406 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01153, allocations: 0 / 335.6 MB, free: 5.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000375/0.01191, allocations: 322.8 kB / 335.9 MB, free: 5.078 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.01192, allocations: 4 kB / 335.9 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.01193, allocations: 0 / 335.9 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000186/0.01211, allocations: 81.55 kB / 336 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.992e-05/0.01221, allocations: 47.97 kB / 336 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.01366, allocations: 2.772 MB / 338.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.01376, allocations: 39.97 kB / 338.8 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.01377, allocations: 4 kB / 338.8 MB, free: 1.922 MB / 298.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 9.825e-05/0.01387, allocations: 137.8 kB / 339 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.0139, allocations: 23.86 kB / 339 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.367e-05/0.01392, allocations: 30.27 kB / 339 MB, free: 1.727 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.01393, allocations: 0 / 339 MB, free: 1.727 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.01393, allocations: 4 kB / 339 MB, free: 1.723 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.01394, allocations: 3.938 kB / 339 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005607/0.0145, allocations: 0.5779 MB / 339.6 MB, free: 1.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.0145, allocations: 0 / 339.6 MB, free: 1.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.014e-05/0.01456, allocations: 23.98 kB / 339.6 MB, free: 1.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001186/0.01468, allocations: 85.59 kB / 339.7 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.01469, allocations: 0 / 339.7 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001279/0.01597, allocations: 2.78 MB / 342.5 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.01597, allocations: 4.125 kB / 342.5 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000332/0.0163, allocations: 376.6 kB / 342.9 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/0.01632, allocations: 27.78 kB / 342.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.01634, allocations: 8 kB / 342.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.01645, allocations: 35.91 kB / 342.9 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.095e-05/0.01651, allocations: 23.91 kB / 343 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.01652, allocations: 4 kB / 343 MB, free: 13.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001038/0.01663, allocations: 177.2 kB / 343.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01663, allocations: 0 / 343.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002753/0.0169, allocations: 91.89 kB / 343.2 MB, free: 13.24 MB / 314.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.0001037/0.01701, allocations: 115.2 kB / 343.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004644/0.01747, allocations: 437 kB / 343.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.01747, allocations: 0 / 343.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.01769, allocations: 345.3 kB / 344.1 MB, free: 12.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.01794, allocations: 36.42 kB / 344.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005947/0.01853, allocations: 0.4928 MB / 344.6 MB, free: 11.74 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.36e-05/0.01862, allocations: 163.2 kB / 344.8 MB, free: 11.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.034e-05/0.01867, allocations: 24.5 kB / 344.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.01868, allocations: 0 / 344.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of Templates: time 0.004873/0.02355, allocations: 5.631 MB / 350.4 MB, free: 5.914 MB / 314.7 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.6768820360302925]