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.001368/0.001368, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001527/0.001527, allocations: 170 kB / 25.61 MB, free: 8.855 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.9536/0.9536, allocations: 177.1 MB / 206 MB, free: 4.5 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.453e-06/1.453e-06, allocations: 0 / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.413e-05/1.558e-05, allocations: 2.844 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002685/0.002701, allocations: 2.993 MB / 277.2 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009411/0.003642, allocations: 0.7461 MB / 277.9 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.003754, allocations: 7.938 kB / 278 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.003883, allocations: 55.44 kB / 278 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001214/0.004005, allocations: 105 kB / 278.1 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.00424, allocations: 108.4 kB / 278.2 MB, free: 400 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002866/0.004526, allocations: 430 kB / 278.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.004661, allocations: 71.64 kB / 278.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002325/0.004893, allocations: 231.5 kB / 278.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.005015, allocations: 127.6 kB / 279.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.434e-05/0.005049, allocations: 32 kB / 279.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.732e-05/0.005106, allocations: 32 kB / 279.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.167e-05/0.005148, allocations: 71.73 kB / 279.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.055e-05/0.005229, allocations: 131.7 kB / 279.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000243/0.005472, allocations: 275 kB / 279.6 MB, free: 15.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.005475, allocations: 3.984 kB / 279.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.005476, allocations: 0 / 279.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.005479, allocations: 4 kB / 279.6 MB, free: 15.01 MB / 266.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.0005749/0.006054, allocations: 0.6596 MB / 280.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/0.006084, allocations: 12.03 kB / 280.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.006216, allocations: 68.7 kB / 280.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.006431, allocations: 228 kB / 280.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.006449, allocations: 24.97 kB / 280.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.016e-05/0.006479, allocations: 28.38 kB / 280.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.006727, allocations: 337.6 kB / 280.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.006737, allocations: 192 / 280.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.006754, allocations: 16.31 kB / 280.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.006762, allocations: 7.938 kB / 281 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.903e-05/0.006861, allocations: 88.52 kB / 281 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008214/0.007682, allocations: 0.7904 MB / 281.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002243/0.007906, allocations: 167.4 kB / 282 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.285e-05/0.007959, allocations: 55.59 kB / 282.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.007977, allocations: 12 kB / 282.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.008001, allocations: 37.39 kB / 282.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.008002, allocations: 0 / 282.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005104/0.008513, allocations: 294.5 kB / 282.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/0.008537, allocations: 55.41 kB / 282.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.008682, allocations: 280.2 kB / 282.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.008699, allocations: 33.7 kB / 282.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.403e-05/0.008793, allocations: 239.2 kB / 283 MB, free: 11.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.726e-05/0.008831, allocations: 79.34 kB / 283.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.106e-05/0.008882, allocations: 47.59 kB / 283.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.008991, allocations: 0.5078 MB / 283.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.594e-05/0.009027, allocations: 28.44 kB / 283.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.316e-05/0.00908, allocations: 59.95 kB / 283.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.252e-05/0.009173, allocations: 95.62 kB / 283.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.009174, allocations: 0 / 283.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002259/0.0094, allocations: 226.8 kB / 284 MB, free: 10.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.009413, allocations: 8 kB / 284 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.009417, allocations: 0 / 284 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000214/0.009631, allocations: 99.34 kB / 284.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.691e-05/0.009718, allocations: 39.91 kB / 284.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.01112, allocations: 3.619 MB / 287.8 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.061e-05/0.0112, allocations: 27.83 kB / 287.8 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.01122, allocations: 8 kB / 287.8 MB, free: 6.254 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 8.995e-05/0.01131, allocations: 164.5 kB / 288 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.659e-05/0.01134, allocations: 31.86 kB / 288 MB, free: 6.051 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.402e-05/0.01137, allocations: 30.3 kB / 288 MB, free: 6.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.01137, allocations: 11.94 kB / 288 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.01138, allocations: 0 / 288 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.01138, allocations: 0 / 288 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00041/0.01179, allocations: 0.5081 MB / 288.6 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.01179, allocations: 0 / 288.6 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.141e-05/0.01184, allocations: 23.92 kB / 288.6 MB, free: 5.434 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001568/0.012, allocations: 99.36 kB / 288.7 MB, free: 5.328 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.012, allocations: 0 / 288.7 MB, free: 5.328 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001291/0.0133, allocations: 3.611 MB / 292.3 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.0133, allocations: 3.984 kB / 292.3 MB, free: 1.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002266/0.01352, allocations: 347.6 kB / 292.6 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.353e-05/0.01355, allocations: 35.72 kB / 292.7 MB, free: 1.078 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.01356, allocations: 0 / 292.7 MB, free: 1.078 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.01367, allocations: 31.97 kB / 292.7 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.01371, allocations: 23.91 kB / 292.7 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.01372, allocations: 8 kB / 292.7 MB, free: 1.016 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.629e-05/0.01379, allocations: 197.1 kB / 292.9 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01379, allocations: 4 kB / 292.9 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002333/0.01403, allocations: 87.89 kB / 293 MB, free: 0.7305 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 8.564e-05/0.01411, allocations: 103.2 kB / 293.1 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003252/0.01444, allocations: 471.3 kB / 293.6 MB, free: 128 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.01444, allocations: 0 / 293.6 MB, free: 128 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.01463, allocations: 423.2 kB / 294 MB, free: 15.67 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.01486, allocations: 48.58 kB / 294 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006706/0.01553, allocations: 493.7 kB / 294.5 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.039e-05/0.01558, allocations: 92.17 kB / 294.6 MB, free: 15.01 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.997e-05/0.01564, allocations: 21.94 kB / 294.6 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.01576, allocations: 126.2 kB / 294.7 MB, free: 14.86 MB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01576, allocations: 0 / 294.7 MB, free: 14.86 MB / 282.7 MB Notification: Performance of Templates: time 0.005358/0.02112, allocations: 3.919 MB / 298.7 MB, free: 11.01 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 240] 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","",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.853367316070944]