Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001154/0.001154, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.968/0.968, allocations: 177 MB / 204.8 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.092e-05/2.303e-05, allocations: 5.266 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002225/0.002248, allocations: 1.886 MB / 274.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.003378, allocations: 0.6542 MB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.957e-05/0.003477, allocations: 7.938 kB / 275.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.003603, allocations: 27.67 kB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001355/0.003739, allocations: 31.66 kB / 275.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003359/0.004075, allocations: 87.72 kB / 275.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001967/0.004272, allocations: 171.3 kB / 275.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.004413, allocations: 52.53 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.004576, allocations: 107.7 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.004699, allocations: 63.73 kB / 276 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.501e-05/0.004724, allocations: 12 kB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.386e-05/0.004797, allocations: 27.98 kB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.448e-05/0.004862, allocations: 39.83 kB / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.717e-05/0.004919, allocations: 55.83 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.005141, allocations: 151.3 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.005144, allocations: 4 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.005146, allocations: 4 kB / 276.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.005152, allocations: 0 / 276.3 MB, free: 14.1 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007065/0.005858, allocations: 0.5271 MB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.005909, allocations: 15.98 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.006044, allocations: 36.8 kB / 276.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.006252, allocations: 184.2 kB / 277 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.006277, allocations: 16.66 kB / 277 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.006295, allocations: 16.36 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000233/0.006528, allocations: 172.1 kB / 277.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.006538, allocations: 4.125 kB / 277.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.006554, allocations: 8.375 kB / 277.2 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.006576, allocations: 7.938 kB / 277.2 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.006683, allocations: 73.22 kB / 277.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007024/0.007385, allocations: 0.8358 MB / 278.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.007562, allocations: 126 kB / 278.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.127e-05/0.007613, allocations: 39.48 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.007648, allocations: 4 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/0.007785, allocations: 128.4 kB / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.007787, allocations: 4 kB / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002564/0.008043, allocations: 141.7 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.008083, allocations: 93.03 kB / 278.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.008218, allocations: 257.6 kB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.008233, allocations: 29.7 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.374e-05/0.008317, allocations: 187.1 kB / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.008344, allocations: 43.66 kB / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/0.008398, allocations: 55.34 kB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.008529, allocations: 0.4962 MB / 279.7 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.894e-05/0.008578, allocations: 27.98 kB / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.341e-05/0.008662, allocations: 105.5 kB / 279.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001363/0.008798, allocations: 150 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.0088, allocations: 0 / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001901/0.008991, allocations: 185.2 kB / 280.2 MB, free: 9.836 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.009012, allocations: 10.91 kB / 280.2 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.009018, allocations: 7.938 kB / 280.2 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.00903, allocations: 4.188 kB / 280.2 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.009136, allocations: 31.98 kB / 280.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.009145, allocations: 11.92 kB / 280.3 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.065e-05/0.009206, allocations: 19.89 kB / 280.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.009217, allocations: 12 kB / 280.3 MB, free: 9.742 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.454e-05/0.009311, allocations: 176.5 kB / 280.5 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/0.009335, allocations: 19.84 kB / 280.5 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001994/0.009534, allocations: 147 kB / 280.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.009537, allocations: 0 / 280.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.009539, allocations: 4 kB / 280.6 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.009543, allocations: 0 / 280.6 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001428/0.009686, allocations: 188.5 kB / 280.8 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.009687, allocations: 112 / 280.8 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.003e-05/0.009737, allocations: 27.86 kB / 280.8 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.009739, allocations: 0 / 280.8 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.009751, allocations: 11.94 kB / 280.8 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.009752, allocations: 0 / 280.8 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.009753, allocations: 0 / 280.8 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.009918, allocations: 178.8 kB / 281 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.809e-05/0.009936, allocations: 15.86 kB / 281 MB, free: 8.914 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.009958, allocations: 19.92 kB / 281.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.16e-05/0.01, allocations: 7.984 kB / 281.1 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.01006, allocations: 19.97 kB / 281.1 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.01007, allocations: 8 kB / 281.1 MB, free: 8.859 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.221e-05/0.01014, allocations: 168.5 kB / 281.3 MB, free: 8.695 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01014, allocations: 0 / 281.3 MB, free: 8.695 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000165/0.01031, allocations: 39.89 kB / 281.3 MB, free: 8.656 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.897e-05/0.01041, allocations: 103.2 kB / 281.4 MB, free: 8.547 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001693/0.01058, allocations: 111.5 kB / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01058, allocations: 0 / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.199e-05/0.01064, allocations: 47.61 kB / 281.6 MB, free: 8.383 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002041/0.01084, allocations: 51.89 kB / 281.6 MB, free: 8.332 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005848/0.01143, allocations: 364.4 kB / 282 MB, free: 7.941 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.143e-05/0.01147, allocations: 76.36 kB / 282 MB, free: 7.848 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.34e-05/0.01153, allocations: 33.45 kB / 282.1 MB, free: 7.816 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.257e-05/0.01158, allocations: 20.5 kB / 282.1 MB, free: 7.797 MB / 266.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01158, allocations: 0 / 282.1 MB, free: 7.797 MB / 266.7 MB Notification: Performance of Templates: time 0.003848/0.01542, allocations: 2.375 MB / 284.5 MB, free: 5.465 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.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.825347680132836]