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.00152/0.00152, allocations: 96.3 kB / 21.73 MB, free: 2.699 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.001634/0.001634, allocations: 169.2 kB / 25.02 MB, free: 8.422 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 1.482/1.482, allocations: 158.6 MB / 186.8 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 178] 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.1.|multiSwitch.u.2.",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.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 250.3 MB, free: 3.957 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.233e-05/3.404e-05, allocations: 5.406 kB / 250.3 MB, free: 3.953 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003868/0.003902, allocations: 1.813 MB / 252.2 MB, free: 2.121 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.005355, allocations: 0.5969 MB / 252.8 MB, free: 1.516 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.00546, allocations: 7.938 kB / 252.8 MB, free: 1.508 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.005618, allocations: 27.66 kB / 252.8 MB, free: 1.48 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.005778, allocations: 39.66 kB / 252.8 MB, free: 1.441 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003304/0.006109, allocations: 71.73 kB / 252.9 MB, free: 1.371 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002854/0.006394, allocations: 171.3 kB / 253.1 MB, free: 1.203 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.006581, allocations: 45.88 kB / 253.1 MB, free: 1.16 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.006778, allocations: 103.8 kB / 253.2 MB, free: 1.059 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.00695, allocations: 59.8 kB / 253.3 MB, free: 1 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.557e-05/0.006985, allocations: 12 kB / 253.3 MB, free: 0.9883 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.983e-05/0.007065, allocations: 19.98 kB / 253.3 MB, free: 0.9688 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.331e-05/0.007158, allocations: 43.83 kB / 253.3 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.748e-05/0.007246, allocations: 47.84 kB / 253.4 MB, free: 0.8789 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003548/0.007601, allocations: 191.2 kB / 253.6 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.007605, allocations: 0 / 253.6 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.007607, allocations: 0 / 253.6 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.007614, allocations: 0 / 253.6 MB, free: 0.6914 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.001048/0.008661, allocations: 449.5 kB / 254 MB, free: 228 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.008711, allocations: 15.98 kB / 254 MB, free: 212 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.697e-05/0.008808, allocations: 40.72 kB / 254.1 MB, free: 172 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.009146, allocations: 173.2 kB / 254.2 MB, free: 15.97 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.009169, allocations: 12.66 kB / 254.3 MB, free: 15.96 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.009201, allocations: 20.31 kB / 254.3 MB, free: 15.94 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004458/0.009647, allocations: 203.4 kB / 254.5 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.009657, allocations: 4.188 kB / 254.5 MB, free: 15.72 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.009678, allocations: 4.375 kB / 254.5 MB, free: 15.72 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.11e-05/0.009709, allocations: 15.92 kB / 254.5 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003434/0.01005, allocations: 143.8 kB / 254.6 MB, free: 15.56 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.01129, allocations: 0.684 MB / 255.3 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.01168, allocations: 157.1 kB / 255.5 MB, free: 14.66 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.01185, allocations: 69.75 kB / 255.5 MB, free: 14.59 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.0119, allocations: 7.984 kB / 255.6 MB, free: 14.58 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003141/0.01221, allocations: 148.9 kB / 255.7 MB, free: 14.42 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.01221, allocations: 0 / 255.7 MB, free: 14.42 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007009/0.01291, allocations: 257.7 kB / 255.9 MB, free: 14.16 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.131e-05/0.013, allocations: 85.11 kB / 256 MB, free: 14.06 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.01325, allocations: 195.8 kB / 256.2 MB, free: 13.86 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.539e-05/0.0133, allocations: 33.7 kB / 256.3 MB, free: 13.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.01345, allocations: 144.4 kB / 256.4 MB, free: 13.67 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.024e-05/0.01351, allocations: 51.56 kB / 256.4 MB, free: 13.62 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.059e-05/0.0136, allocations: 49.5 kB / 256.5 MB, free: 13.57 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.01381, allocations: 326.8 kB / 256.8 MB, free: 13.24 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.01398, allocations: 67.95 kB / 256.9 MB, free: 13.17 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.01421, allocations: 130.8 kB / 257 MB, free: 13.02 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004014/0.01462, allocations: 198.7 kB / 257.2 MB, free: 12.8 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.01462, allocations: 0 / 257.2 MB, free: 12.8 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005241/0.01514, allocations: 249.3 kB / 257.4 MB, free: 12.55 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.01517, allocations: 15.92 kB / 257.5 MB, free: 12.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.01518, allocations: 112 / 257.5 MB, free: 12.54 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.419e-05/0.01521, allocations: 7.938 kB / 257.5 MB, free: 12.53 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.0154, allocations: 35.92 kB / 257.5 MB, free: 12.49 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.01541, allocations: 4 kB / 257.5 MB, free: 12.49 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001728/0.01559, allocations: 32.05 kB / 257.5 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.01561, allocations: 12.7 kB / 257.6 MB, free: 12.45 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 0.0001663/0.01577, allocations: 141.8 kB / 257.7 MB, free: 12.3 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.102e-05/0.01582, allocations: 27.8 kB / 257.7 MB, free: 12.27 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000535/0.01636, allocations: 215 kB / 257.9 MB, free: 12.05 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.01636, allocations: 4 kB / 257.9 MB, free: 12.05 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.01637, allocations: 0 / 257.9 MB, free: 12.05 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.01637, allocations: 0 / 257.9 MB, free: 12.05 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000516/0.01689, allocations: 189.2 kB / 258.1 MB, free: 11.83 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.01689, allocations: 4 kB / 258.1 MB, free: 11.83 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.01701, allocations: 23.98 kB / 258.1 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.01702, allocations: 4 kB / 258.1 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.01704, allocations: 3.938 kB / 258.2 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.01704, allocations: 3.938 kB / 258.2 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.01704, allocations: 0 / 258.2 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000487/0.01753, allocations: 231.9 kB / 258.4 MB, free: 11.55 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.796e-05/0.01757, allocations: 23.81 kB / 258.4 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.0176, allocations: 7.938 kB / 258.4 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.01774, allocations: 19.98 kB / 258.4 MB, free: 11.5 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.563e-05/0.01782, allocations: 19.97 kB / 258.5 MB, free: 11.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.01783, allocations: 4 kB / 258.5 MB, free: 11.47 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001439/0.01798, allocations: 136.2 kB / 258.6 MB, free: 11.34 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01798, allocations: 0 / 258.6 MB, free: 11.34 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002983/0.01828, allocations: 39.94 kB / 258.6 MB, free: 11.3 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.0001999/0.01848, allocations: 103.2 kB / 258.7 MB, free: 11.19 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004375/0.01891, allocations: 171.7 kB / 258.9 MB, free: 11.02 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.01891, allocations: 0 / 258.9 MB, free: 11.02 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002069/0.01912, allocations: 83.88 kB / 259 MB, free: 10.94 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.01949, allocations: 43.91 kB / 259 MB, free: 10.89 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008908/0.02038, allocations: 366.6 kB / 259.4 MB, free: 10.5 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001795/0.02056, allocations: 133.3 kB / 259.5 MB, free: 10.36 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.02069, allocations: 33.45 kB / 259.5 MB, free: 10.32 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.363e-05/0.02075, allocations: 24.44 kB / 259.6 MB, free: 10.3 MB / 250.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02075, allocations: 0 / 259.6 MB, free: 10.3 MB / 250.7 MB Notification: Performance of Templates: time 0.008975/0.02973, allocations: 2.235 MB / 261.8 MB, free: 8.09 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.44164976105094]