Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.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.001033/0.001033, allocations: 85.95 kB / 22.99 MB, free: 1.5 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.001051/0.001051, allocations: 176.8 kB / 26.4 MB, free: 7.988 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.9976/0.9976, allocations: 158.6 MB / 188.3 MB, free: 2.82 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.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 3.938 kB / 252.2 MB, free: 7.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.423e-05/2.58e-05, allocations: 6.312 kB / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00307/0.003095, allocations: 1.634 MB / 253.9 MB, free: 5.613 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009008/0.003996, allocations: 451.8 kB / 254.3 MB, free: 5.164 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.828e-05/0.004075, allocations: 4 kB / 254.3 MB, free: 5.16 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.515e-05/0.00412, allocations: 7.875 kB / 254.3 MB, free: 5.152 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.004231, allocations: 15.84 kB / 254.3 MB, free: 5.137 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000167/0.004398, allocations: 19.98 kB / 254.4 MB, free: 5.117 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.004502, allocations: 67.72 kB / 254.4 MB, free: 5.051 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.004677, allocations: 35.84 kB / 254.5 MB, free: 5.016 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.004814, allocations: 39.91 kB / 254.5 MB, free: 4.977 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.72e-05/0.004881, allocations: 23.91 kB / 254.5 MB, free: 4.953 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.948e-05/0.004901, allocations: 4 kB / 254.5 MB, free: 4.949 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.289e-05/0.004914, allocations: 8 kB / 254.5 MB, free: 4.941 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.242e-05/0.004936, allocations: 7.984 kB / 254.5 MB, free: 4.934 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.969e-05/0.004966, allocations: 23.92 kB / 254.6 MB, free: 4.91 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.005089, allocations: 47.81 kB / 254.6 MB, free: 4.863 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.005092, allocations: 0 / 254.6 MB, free: 4.863 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.005093, allocations: 0 / 254.6 MB, free: 4.863 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.005098, allocations: 0 / 254.6 MB, free: 4.863 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000404/0.005502, allocations: 408.3 kB / 255 MB, free: 4.43 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.005541, allocations: 12.02 kB / 255 MB, free: 4.418 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.908e-05/0.00558, allocations: 16.84 kB / 255 MB, free: 4.402 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.709e-05/0.005677, allocations: 128.4 kB / 255.2 MB, free: 4.25 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.005698, allocations: 384 / 255.2 MB, free: 4.25 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.005707, allocations: 4.375 kB / 255.2 MB, free: 4.246 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.005874, allocations: 125.3 kB / 255.3 MB, free: 4.094 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.076e-06/0.005883, allocations: 192 / 255.3 MB, free: 4.094 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-06/0.005891, allocations: 384 / 255.3 MB, free: 4.094 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.0059, allocations: 7.938 kB / 255.3 MB, free: 4.086 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003056/0.008956, allocations: 27.92 kB / 255.3 MB, free: 4.055 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005916/0.009548, allocations: 0.7812 MB / 256.1 MB, free: 3.227 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001309/0.009679, allocations: 139.3 kB / 256.2 MB, free: 3.027 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.291e-05/0.009732, allocations: 54.55 kB / 256.3 MB, free: 2.953 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.009747, allocations: 0 / 256.3 MB, free: 2.953 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.009779, allocations: 41.33 kB / 256.3 MB, free: 2.902 MB / 234.7 MB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.00978, allocations: 0 / 256.3 MB, free: 2.902 MB / 234.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002696/0.01005, allocations: 85.69 kB / 256.4 MB, free: 2.812 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/0.01012, allocations: 154.2 kB / 256.6 MB, free: 2.625 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.511e-05/0.01021, allocations: 173.9 kB / 256.7 MB, free: 2.438 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.01022, allocations: 25.7 kB / 256.8 MB, free: 2.406 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.196e-05/0.01029, allocations: 150.7 kB / 256.9 MB, free: 2.254 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.615e-05/0.01031, allocations: 19.89 kB / 256.9 MB, free: 2.234 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.16e-05/0.01035, allocations: 23.36 kB / 257 MB, free: 2.203 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.0105, allocations: 0.4884 MB / 257.4 MB, free: 1.703 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.068e-05/0.01052, allocations: 8.422 kB / 257.5 MB, free: 1.695 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.978e-05/0.01056, allocations: 46.44 kB / 257.5 MB, free: 1.629 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003481/0.01091, allocations: 66.36 kB / 257.6 MB, free: 1.543 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.01091, allocations: 3.938 kB / 257.6 MB, free: 1.539 MB / 234.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001185/0.01103, allocations: 69.52 kB / 257.6 MB, free: 1.465 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.01105, allocations: 4 kB / 257.6 MB, free: 1.461 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.01105, allocations: 4.156 kB / 257.6 MB, free: 1.457 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.01106, allocations: 7.984 kB / 257.7 MB, free: 1.449 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.605e-05/0.01114, allocations: 11.94 kB / 257.7 MB, free: 1.438 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-06/0.01114, allocations: 0 / 257.7 MB, free: 1.438 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.644e-05/0.01119, allocations: 7.984 kB / 257.7 MB, free: 1.43 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.0112, allocations: 4 kB / 257.7 MB, free: 1.426 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.000104/0.0113, allocations: 172.4 kB / 257.8 MB, free: 1.246 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.769e-05/0.01139, allocations: 7.953 kB / 257.9 MB, free: 1.238 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.116e-05/0.01142, allocations: 11.62 kB / 257.9 MB, free: 1.227 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.01142, allocations: 4 kB / 257.9 MB, free: 1.223 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.01143, allocations: 4 kB / 257.9 MB, free: 1.219 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.01143, allocations: 0 / 257.9 MB, free: 1.219 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003359/0.01479, allocations: 121.4 kB / 258 MB, free: 1.074 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.01479, allocations: 0 / 258 MB, free: 1.074 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.822e-05/0.01485, allocations: 11.98 kB / 258 MB, free: 1.062 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.01486, allocations: 3.938 kB / 258 MB, free: 1.059 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.01487, allocations: 4 kB / 258 MB, free: 1.055 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.01487, allocations: 0 / 258 MB, free: 1.055 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.01487, allocations: 7.938 kB / 258 MB, free: 1.047 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003026/0.01517, allocations: 0.6725 MB / 258.7 MB, free: 360 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.463e-05/0.01519, allocations: 15.88 kB / 258.7 MB, free: 344 kB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.0152, allocations: 4 kB / 258.7 MB, free: 340 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.01541, allocations: 4 kB / 258.7 MB, free: 336 kB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.141e-05/0.01545, allocations: 11.92 kB / 258.7 MB, free: 324 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-06/0.01546, allocations: 4 kB / 258.7 MB, free: 320 kB / 234.7 MB Notification: Performance of sorting global known variables: time 5.48e-05/0.01551, allocations: 131.2 kB / 258.9 MB, free: 188 kB / 234.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01551, allocations: 0 / 258.9 MB, free: 188 kB / 234.7 MB Notification: Performance of remove unused functions: time 0.0004416/0.01595, allocations: 8 kB / 258.9 MB, free: 180 kB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0001219/0.01608, allocations: 103.2 kB / 259 MB, free: 64 kB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001116/0.01619, allocations: 31.61 kB / 259 MB, free: 28 kB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01619, allocations: 0 / 259 MB, free: 28 kB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 5.505e-05/0.01624, allocations: 31.66 kB / 259 MB, free: 15.99 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005977/0.01684, allocations: 12.7 kB / 259 MB, free: 15.98 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005553/0.0174, allocations: 212.3 kB / 259.2 MB, free: 15.73 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.668e-05/0.01746, allocations: 67.28 kB / 259.3 MB, free: 15.64 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.06e-05/0.01749, allocations: 3.906 kB / 259.3 MB, free: 15.64 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.427e-05/0.01755, allocations: 74.19 kB / 259.4 MB, free: 15.57 MB / 250.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01755, allocations: 0 / 259.4 MB, free: 15.57 MB / 250.7 MB Notification: Performance of Templates: time 0.00566/0.02321, allocations: 0.616 MB / 260 MB, free: 14.95 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BusUsage/BusUsage.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.8907353840768337]