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.001025/0.001025, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.0009865/0.0009865, allocations: 160.9 kB / 24.99 MB, free: 8.801 MB / 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 1.021/1.021, allocations: 177 MB / 205.2 MB, free: 5.582 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 1.312e-06/1.312e-06, allocations: 0 / 273 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.996e-05/2.127e-05, allocations: 2.312 kB / 273 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002258/0.002279, allocations: 1.89 MB / 274.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008785/0.003157, allocations: 0.6387 MB / 275.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.879e-05/0.003246, allocations: 7.938 kB / 275.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.003356, allocations: 35.66 kB / 275.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.003464, allocations: 39.59 kB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002479/0.003712, allocations: 75.78 kB / 275.7 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001609/0.003873, allocations: 175.3 kB / 275.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.003997, allocations: 44.55 kB / 275.9 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.004154, allocations: 111.6 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.841e-05/0.004252, allocations: 63.8 kB / 276.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.656e-05/0.004279, allocations: 16 kB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.106e-05/0.00434, allocations: 27.98 kB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.341e-05/0.004393, allocations: 43.83 kB / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.904e-05/0.004443, allocations: 43.84 kB / 276.2 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001834/0.004626, allocations: 163.3 kB / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.004627, allocations: 0 / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.004628, allocations: 0 / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.004632, allocations: 0 / 276.3 MB, free: 14.37 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.0006711/0.005303, allocations: 0.531 MB / 276.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.005342, allocations: 11.98 kB / 276.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.005461, allocations: 44.78 kB / 276.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.005634, allocations: 176.2 kB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.005653, allocations: 12.66 kB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.005669, allocations: 16.38 kB / 277.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.005868, allocations: 184 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.005877, allocations: 4.188 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.005889, allocations: 4.375 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.005909, allocations: 11.94 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001072/0.006016, allocations: 72.53 kB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006011/0.006617, allocations: 0.828 MB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.006774, allocations: 122 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.225e-05/0.006826, allocations: 43.48 kB / 278.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.006862, allocations: 8 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001288/0.006991, allocations: 131.2 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.006992, allocations: 0 / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002607/0.007253, allocations: 153.6 kB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.007297, allocations: 77.11 kB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/0.00748, allocations: 249.6 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.007504, allocations: 33.7 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.007605, allocations: 191.1 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.022e-05/0.007646, allocations: 47.64 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.907e-05/0.007715, allocations: 47.36 kB / 279.3 MB, free: 11.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.007842, allocations: 0.5001 MB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.056e-05/0.007913, allocations: 31.98 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.373e-05/0.007996, allocations: 105.5 kB / 279.9 MB, free: 10.47 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.008128, allocations: 146 kB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.00813, allocations: 4 kB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001927/0.008323, allocations: 181.2 kB / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.008336, allocations: 14.89 kB / 280.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.008341, allocations: 4 kB / 280.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.008353, allocations: 4 kB / 280.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.008463, allocations: 35.92 kB / 280.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.00847, allocations: 4 kB / 280.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.983e-05/0.00853, allocations: 19.88 kB / 280.3 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.008542, allocations: 12 kB / 280.4 MB, free: 10.02 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 8.098e-05/0.008623, allocations: 176.7 kB / 280.5 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.452e-05/0.008647, allocations: 31.83 kB / 280.6 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.008848, allocations: 131 kB / 280.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.008852, allocations: 4 kB / 280.7 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.008855, allocations: 3.938 kB / 280.7 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.008861, allocations: 7.984 kB / 280.7 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.009018, allocations: 192.5 kB / 280.9 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.00902, allocations: 4 kB / 280.9 MB, free: 9.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.57e-05/0.009075, allocations: 16.09 kB / 280.9 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.009079, allocations: 7.938 kB / 280.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.009088, allocations: 7.938 kB / 280.9 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.00909, allocations: 0 / 280.9 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.009092, allocations: 4 kB / 280.9 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001595/0.009252, allocations: 175.9 kB / 281.1 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.624e-05/0.009268, allocations: 15.86 kB / 281.1 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.009286, allocations: 7.938 kB / 281.1 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.573e-05/0.009331, allocations: 11.98 kB / 281.1 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.91e-05/0.009381, allocations: 19.97 kB / 281.2 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.009388, allocations: 4 kB / 281.2 MB, free: 9.137 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.543e-05/0.009464, allocations: 172.5 kB / 281.3 MB, free: 8.969 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.009464, allocations: 4 kB / 281.3 MB, free: 8.965 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001739/0.009638, allocations: 43.89 kB / 281.4 MB, free: 8.922 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 0.0001172/0.009755, allocations: 106.5 kB / 281.5 MB, free: 8.812 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001565/0.009911, allocations: 99.52 kB / 281.6 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.009912, allocations: 0 / 281.6 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.774e-05/0.00998, allocations: 59.59 kB / 281.6 MB, free: 8.648 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001973/0.01018, allocations: 36.34 kB / 281.7 MB, free: 8.613 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005939/0.01077, allocations: 360.4 kB / 282 MB, free: 8.227 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.825e-05/0.01082, allocations: 79.97 kB / 282.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.728e-05/0.01089, allocations: 25.47 kB / 282.1 MB, free: 8.105 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.997e-05/0.01093, allocations: 28.48 kB / 282.2 MB, free: 8.078 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01093, allocations: 4 kB / 282.2 MB, free: 8.074 MB / 266.7 MB Notification: Performance of Templates: time 0.003932/0.01486, allocations: 2.228 MB / 284.4 MB, free: 5.887 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.783186267130077]