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.001162/0.001162, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.001337/0.001337, allocations: 165.6 kB / 25.69 MB, free: 8.441 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.8814/0.8814, allocations: 158.6 MB / 187.6 MB, free: 2.781 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.343e-06/1.343e-06, allocations: 0 / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.761e-05/1.896e-05, allocations: 2.312 kB / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003027/0.003046, allocations: 1.853 MB / 253.4 MB, free: 5.406 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.004288, allocations: 0.6472 MB / 254 MB, free: 4.75 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.004403, allocations: 4 kB / 254 MB, free: 4.746 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.004534, allocations: 23.67 kB / 254 MB, free: 4.723 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001534/0.004687, allocations: 35.66 kB / 254.1 MB, free: 4.688 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.004999, allocations: 75.78 kB / 254.1 MB, free: 4.613 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.005223, allocations: 167.3 kB / 254.3 MB, free: 4.449 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.005363, allocations: 49.41 kB / 254.4 MB, free: 4.406 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.005534, allocations: 103.6 kB / 254.5 MB, free: 4.305 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.005679, allocations: 63.84 kB / 254.5 MB, free: 4.242 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.795e-05/0.005707, allocations: 15.94 kB / 254.5 MB, free: 4.227 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.134e-05/0.005778, allocations: 20 kB / 254.6 MB, free: 4.207 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.675e-05/0.005845, allocations: 43.83 kB / 254.6 MB, free: 4.164 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.434e-05/0.005909, allocations: 51.83 kB / 254.7 MB, free: 4.113 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.006141, allocations: 139.4 kB / 254.8 MB, free: 3.973 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.006145, allocations: 11.98 kB / 254.8 MB, free: 3.961 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.006146, allocations: 0 / 254.8 MB, free: 3.961 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.006149, allocations: 0 / 254.8 MB, free: 3.961 MB / 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.0005918/0.006741, allocations: 408 kB / 255.2 MB, free: 3.539 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.006774, allocations: 11.98 kB / 255.2 MB, free: 3.527 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.625e-05/0.006831, allocations: 32.91 kB / 255.2 MB, free: 3.496 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.007044, allocations: 169.2 kB / 255.4 MB, free: 3.305 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.007069, allocations: 16.64 kB / 255.4 MB, free: 3.289 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.007094, allocations: 16.38 kB / 255.4 MB, free: 3.273 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002471/0.007342, allocations: 163 kB / 255.6 MB, free: 3.094 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.007352, allocations: 192 / 255.6 MB, free: 3.094 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.007366, allocations: 4.375 kB / 255.6 MB, free: 3.09 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.394e-05/0.00739, allocations: 15.92 kB / 255.6 MB, free: 3.074 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.691e-05/0.007486, allocations: 45.58 kB / 255.7 MB, free: 3.027 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000721/0.008207, allocations: 0.5748 MB / 256.2 MB, free: 2.422 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.008403, allocations: 178.6 kB / 256.4 MB, free: 2.227 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.125e-05/0.008454, allocations: 33.98 kB / 256.4 MB, free: 2.188 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.008483, allocations: 4 kB / 256.4 MB, free: 2.184 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001401/0.008623, allocations: 107.6 kB / 256.6 MB, free: 2.062 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.008624, allocations: 0 / 256.6 MB, free: 2.062 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002232/0.008848, allocations: 119.2 kB / 256.7 MB, free: 1.938 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.008893, allocations: 81.11 kB / 256.8 MB, free: 1.84 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.009043, allocations: 195.5 kB / 256.9 MB, free: 1.633 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.009066, allocations: 29.81 kB / 257 MB, free: 1.598 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.578e-05/0.009142, allocations: 144.3 kB / 257.1 MB, free: 1.453 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.472e-05/0.009176, allocations: 35.69 kB / 257.1 MB, free: 1.418 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.725e-05/0.009244, allocations: 41.69 kB / 257.2 MB, free: 1.371 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.009347, allocations: 334.8 kB / 257.5 MB, free: 1.035 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.539e-05/0.009402, allocations: 22.81 kB / 257.5 MB, free: 1.012 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.033e-05/0.009483, allocations: 78.78 kB / 257.6 MB, free: 0.9102 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.009631, allocations: 119.2 kB / 257.7 MB, free: 0.7656 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.009633, allocations: 3.938 kB / 257.7 MB, free: 0.7617 MB / 234.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002074/0.009841, allocations: 131.7 kB / 257.9 MB, free: 0.625 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.009855, allocations: 8 kB / 257.9 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.00986, allocations: 0 / 257.9 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.00988, allocations: 11.92 kB / 257.9 MB, free: 0.6055 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.01001, allocations: 36.11 kB / 257.9 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.01002, allocations: 4 kB / 257.9 MB, free: 0.5664 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.421e-05/0.01011, allocations: 23.88 kB / 257.9 MB, free: 0.543 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.01013, allocations: 8.078 kB / 258 MB, free: 0.5352 MB / 234.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 0.0001047/0.01023, allocations: 128.6 kB / 258.1 MB, free: 408 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.01026, allocations: 15.98 kB / 258.1 MB, free: 392 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002044/0.01047, allocations: 115 kB / 258.2 MB, free: 268 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.01047, allocations: 7.938 kB / 258.2 MB, free: 260 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.053e-06/0.01047, allocations: 0 / 258.2 MB, free: 260 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.01048, allocations: 7.938 kB / 258.2 MB, free: 252 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.01064, allocations: 121.8 kB / 258.3 MB, free: 112 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.01064, allocations: 3.984 kB / 258.3 MB, free: 108 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.409e-05/0.01073, allocations: 16 kB / 258.4 MB, free: 92 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.01073, allocations: 4 kB / 258.4 MB, free: 88 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.01074, allocations: 7.984 kB / 258.4 MB, free: 80 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.01074, allocations: 0 / 258.4 MB, free: 80 kB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.01075, allocations: 0 / 258.4 MB, free: 80 kB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001931/0.01094, allocations: 134.3 kB / 258.5 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.414e-05/0.01096, allocations: 19.86 kB / 258.5 MB, free: 15.9 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.01099, allocations: 3.984 kB / 258.5 MB, free: 15.9 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.372e-05/0.01106, allocations: 16 kB / 258.5 MB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.62e-05/0.01112, allocations: 19.91 kB / 258.6 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.01113, allocations: 3.984 kB / 258.6 MB, free: 15.86 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.142e-05/0.01119, allocations: 57.78 kB / 258.6 MB, free: 15.8 MB / 250.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01119, allocations: 3.938 kB / 258.6 MB, free: 15.8 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000252/0.01144, allocations: 39.94 kB / 258.7 MB, free: 15.76 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.0001188/0.01156, allocations: 80.41 kB / 258.7 MB, free: 15.67 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001717/0.01173, allocations: 88.88 kB / 258.8 MB, free: 15.58 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.01174, allocations: 0 / 258.8 MB, free: 15.58 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.815e-05/0.01181, allocations: 44.78 kB / 258.9 MB, free: 15.53 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002128/0.01203, allocations: 35.97 kB / 258.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007223/0.01275, allocations: 354.8 kB / 259.3 MB, free: 15.11 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.71e-05/0.01281, allocations: 79.97 kB / 259.3 MB, free: 15.02 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.956e-05/0.01289, allocations: 21.67 kB / 259.4 MB, free: 15 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.01302, allocations: 83.36 kB / 259.4 MB, free: 14.91 MB / 250.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01302, allocations: 0 / 259.4 MB, free: 14.91 MB / 250.7 MB Notification: Performance of Templates: time 0.005543/0.01857, allocations: 2.296 MB / 261.7 MB, free: 12.64 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.5790501520968974]