Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.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.001417/0.001417, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.00166/0.00166, allocations: 170.9 kB / 25.33 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9854/0.9854, allocations: 158.6 MB / 187.2 MB, free: 2.543 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 251 MB, free: 3.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.146e-05/3.302e-05, allocations: 5.406 kB / 251 MB, free: 3.609 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002738/0.002771, allocations: 1.867 MB / 252.9 MB, free: 1.723 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00099/0.003761, allocations: 0.6125 MB / 253.5 MB, free: 1.102 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.003868, allocations: 11.94 kB / 253.5 MB, free: 1.09 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.004016, allocations: 31.66 kB / 253.5 MB, free: 1.059 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.004176, allocations: 39.53 kB / 253.6 MB, free: 1.02 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003209/0.004497, allocations: 67.8 kB / 253.7 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002071/0.004704, allocations: 175.3 kB / 253.8 MB, free: 0.7812 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.004856, allocations: 37.95 kB / 253.9 MB, free: 0.7461 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.004994, allocations: 103.7 kB / 254 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001325/0.005127, allocations: 63.8 kB / 254 MB, free: 0.582 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.005154, allocations: 12 kB / 254 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.987e-05/0.005233, allocations: 27.98 kB / 254.1 MB, free: 0.543 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.589e-05/0.005299, allocations: 39.83 kB / 254.1 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.921e-05/0.005359, allocations: 51.78 kB / 254.2 MB, free: 464 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000237/0.005596, allocations: 147.4 kB / 254.3 MB, free: 316 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.005598, allocations: 4 kB / 254.3 MB, free: 312 kB / 234.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.005599, allocations: 0 / 254.3 MB, free: 312 kB / 234.7 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.005605, allocations: 0 / 254.3 MB, free: 312 kB / 234.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.0006551/0.006261, allocations: 0.5233 MB / 254.8 MB, free: 15.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.006302, allocations: 15.98 kB / 254.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.282e-05/0.006365, allocations: 32.8 kB / 254.9 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002146/0.006579, allocations: 184.1 kB / 255.1 MB, free: 15.49 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.006601, allocations: 8.656 kB / 255.1 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.006622, allocations: 20.31 kB / 255.1 MB, free: 15.46 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.006866, allocations: 183.5 kB / 255.3 MB, free: 15.26 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.006877, allocations: 8.109 kB / 255.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.006892, allocations: 4.375 kB / 255.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.035e-05/0.006912, allocations: 11.94 kB / 255.3 MB, free: 15.24 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.00702, allocations: 67.89 kB / 255.3 MB, free: 15.17 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007357/0.007756, allocations: 0.8397 MB / 256.2 MB, free: 14.28 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001835/0.007939, allocations: 122 kB / 256.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.787e-05/0.007997, allocations: 39.48 kB / 256.3 MB, free: 14.09 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.008033, allocations: 8 kB / 256.4 MB, free: 14.08 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001431/0.008177, allocations: 128.2 kB / 256.5 MB, free: 13.93 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.008178, allocations: 0 / 256.5 MB, free: 13.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002818/0.00846, allocations: 153.8 kB / 256.6 MB, free: 13.78 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.008503, allocations: 77.11 kB / 256.7 MB, free: 13.68 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.008653, allocations: 250.7 kB / 256.9 MB, free: 13.42 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.008672, allocations: 33.7 kB / 257 MB, free: 13.38 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.008772, allocations: 187 kB / 257.2 MB, free: 13.19 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.956e-05/0.008801, allocations: 47.64 kB / 257.2 MB, free: 13.14 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.889e-05/0.00886, allocations: 55.22 kB / 257.3 MB, free: 13.08 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.008991, allocations: 0.5001 MB / 257.8 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.434e-05/0.009045, allocations: 31.98 kB / 257.8 MB, free: 12.54 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.254e-05/0.009128, allocations: 105.5 kB / 257.9 MB, free: 12.4 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001338/0.009262, allocations: 145.3 kB / 258 MB, free: 12.23 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.009264, allocations: 0 / 258 MB, free: 12.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001944/0.009459, allocations: 181.4 kB / 258.2 MB, free: 12.04 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.009475, allocations: 11.88 kB / 258.2 MB, free: 12.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.009481, allocations: 4 kB / 258.2 MB, free: 12.03 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.009498, allocations: 0 / 258.2 MB, free: 12.03 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.009611, allocations: 35.97 kB / 258.3 MB, free: 11.99 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.00962, allocations: 7.938 kB / 258.3 MB, free: 11.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.865e-05/0.009679, allocations: 23.88 kB / 258.3 MB, free: 11.96 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.00969, allocations: 8.703 kB / 258.3 MB, free: 11.95 MB / 250.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.934e-05/0.009779, allocations: 168.8 kB / 258.5 MB, free: 11.78 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.323e-05/0.009802, allocations: 27.8 kB / 258.5 MB, free: 11.75 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002209/0.01002, allocations: 147.1 kB / 258.6 MB, free: 11.6 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.01003, allocations: 4 kB / 258.6 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.01003, allocations: 0 / 258.6 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.01003, allocations: 0 / 258.6 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.01019, allocations: 192.5 kB / 258.8 MB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.01019, allocations: 3.984 kB / 258.8 MB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.472e-05/0.01025, allocations: 19.94 kB / 258.9 MB, free: 11.35 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/0.01025, allocations: 7.969 kB / 258.9 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.01027, allocations: 15.94 kB / 258.9 MB, free: 11.32 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.01027, allocations: 0 / 258.9 MB, free: 11.32 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.01027, allocations: 0 / 258.9 MB, free: 11.32 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001696/0.01044, allocations: 178.3 kB / 259.1 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.804e-05/0.01046, allocations: 15.84 kB / 259.1 MB, free: 11.11 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.01047, allocations: 7.938 kB / 259.1 MB, free: 11.1 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.281e-05/0.01052, allocations: 11.98 kB / 259.1 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.037e-05/0.01058, allocations: 19.97 kB / 259.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.01058, allocations: 0 / 259.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.716e-05/0.01067, allocations: 176.1 kB / 259.3 MB, free: 10.9 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01067, allocations: 0 / 259.3 MB, free: 10.9 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001813/0.01085, allocations: 39.95 kB / 259.3 MB, free: 10.86 MB / 250.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.0001345/0.01099, allocations: 107.2 kB / 259.4 MB, free: 10.74 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001785/0.01116, allocations: 103.5 kB / 259.5 MB, free: 10.64 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.01117, allocations: 0 / 259.5 MB, free: 10.64 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.5e-05/0.01123, allocations: 47.61 kB / 259.6 MB, free: 10.59 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.01145, allocations: 45.81 kB / 259.6 MB, free: 10.55 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000673/0.01212, allocations: 366.9 kB / 260 MB, free: 10.16 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.809e-05/0.01217, allocations: 83.92 kB / 260.1 MB, free: 10.05 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.947e-05/0.01224, allocations: 29.45 kB / 260.1 MB, free: 10.03 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.163e-05/0.01228, allocations: 16.5 kB / 260.1 MB, free: 10.01 MB / 250.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01228, allocations: 4 kB / 260.1 MB, free: 10.01 MB / 250.7 MB Notification: Performance of Templates: time 0.004359/0.01664, allocations: 2.229 MB / 262.3 MB, free: 7.801 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.8155794427730143]