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.0009692/0.0009692, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001054/0.001054, allocations: 161 kB / 24.91 MB, free: 8.719 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 0.9788/0.9788, allocations: 177 MB / 205.2 MB, free: 5.035 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.743e-06/1.743e-06, allocations: 0 / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.96e-05/2.134e-05, allocations: 5.266 kB / 273.4 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002312/0.002333, allocations: 1.877 MB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.003342, allocations: 0.6619 MB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.003448, allocations: 7.938 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.003584, allocations: 31.67 kB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.003714, allocations: 31.66 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.004022, allocations: 83.72 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001898/0.004212, allocations: 175.3 kB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.004352, allocations: 54.45 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.004539, allocations: 107.7 kB / 276.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.004681, allocations: 59.78 kB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.004708, allocations: 16 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.126e-05/0.004779, allocations: 20 kB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.004883, allocations: 43.83 kB / 276.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.184e-05/0.004934, allocations: 59.77 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.00514, allocations: 147.4 kB / 276.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.005141, allocations: 4 kB / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005142, allocations: 0 / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.005147, allocations: 0 / 276.7 MB, free: 13.67 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.0004948/0.005642, allocations: 412.1 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.00568, allocations: 15.98 kB / 277.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.005794, allocations: 28.91 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.00598, allocations: 173.4 kB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.006, allocations: 16.66 kB / 277.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.006019, allocations: 12.38 kB / 277.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001982/0.006217, allocations: 167.5 kB / 277.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.006226, allocations: 192 / 277.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.00624, allocations: 8.375 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/0.006262, allocations: 11.92 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.267e-05/0.006335, allocations: 45.58 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005366/0.006871, allocations: 0.5632 MB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.007031, allocations: 182.6 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.496e-05/0.007066, allocations: 29.84 kB / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.007096, allocations: 7.984 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001139/0.00721, allocations: 108 kB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.007211, allocations: 0 / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001822/0.007393, allocations: 119.2 kB / 278.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.007442, allocations: 77.11 kB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.007554, allocations: 206.4 kB / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.007571, allocations: 33.7 kB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.907e-05/0.00763, allocations: 124.3 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.904e-05/0.007659, allocations: 47.62 kB / 279.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.4e-05/0.007703, allocations: 41.69 kB / 279.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.23e-05/0.007785, allocations: 334.8 kB / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.412e-05/0.007819, allocations: 22.81 kB / 279.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.731e-05/0.007876, allocations: 82.88 kB / 279.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001057/0.007982, allocations: 135.7 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.007985, allocations: 0 / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001349/0.00812, allocations: 131.1 kB / 279.8 MB, free: 10.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.008132, allocations: 7.984 kB / 279.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.008138, allocations: 4 kB / 279.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.008152, allocations: 7.938 kB / 279.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.359e-05/0.008246, allocations: 36.11 kB / 279.9 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.008251, allocations: 4 kB / 279.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.522e-05/0.008316, allocations: 23.88 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.008326, allocations: 8 kB / 279.9 MB, free: 10.22 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.151e-05/0.008418, allocations: 132.5 kB / 280 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.008435, allocations: 11.98 kB / 280 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.00858, allocations: 115 kB / 280.2 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.008584, allocations: 7.938 kB / 280.2 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.008586, allocations: 0 / 280.2 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.00859, allocations: 4 kB / 280.2 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001184/0.008708, allocations: 117.8 kB / 280.3 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.00871, allocations: 4 kB / 280.3 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.39e-05/0.008754, allocations: 12 kB / 280.3 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.008757, allocations: 0 / 280.3 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.008769, allocations: 11.98 kB / 280.3 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.00877, allocations: 0 / 280.3 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.008771, allocations: 0 / 280.3 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001164/0.008887, allocations: 141.2 kB / 280.5 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.756e-05/0.008905, allocations: 19.84 kB / 280.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.00892, allocations: 4 kB / 280.5 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.524e-05/0.008955, allocations: 12 kB / 280.5 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.009002, allocations: 27.89 kB / 280.5 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.219e-06/0.009007, allocations: 0 / 280.5 MB, free: 9.559 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.961e-05/0.009047, allocations: 50.19 kB / 280.6 MB, free: 9.508 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009047, allocations: 0 / 280.6 MB, free: 9.508 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00015/0.009197, allocations: 43.89 kB / 280.6 MB, free: 9.465 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.0001082/0.009305, allocations: 88.33 kB / 280.7 MB, free: 9.367 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.009434, allocations: 77.02 kB / 280.8 MB, free: 9.289 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.009439, allocations: 4 kB / 280.8 MB, free: 9.285 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.35e-05/0.009493, allocations: 48.7 kB / 280.8 MB, free: 9.234 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001577/0.009651, allocations: 44.61 kB / 280.9 MB, free: 9.191 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000563/0.01021, allocations: 355.7 kB / 281.2 MB, free: 8.809 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.513e-05/0.01026, allocations: 79.97 kB / 281.3 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.81e-05/0.01032, allocations: 25.59 kB / 281.3 MB, free: 8.688 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.73e-05/0.01041, allocations: 83.36 kB / 281.4 MB, free: 8.605 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01041, allocations: 0 / 281.4 MB, free: 8.605 MB / 266.7 MB Notification: Performance of Templates: time 0.004219/0.01463, allocations: 2.286 MB / 283.7 MB, free: 6.371 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.6034220862202346]