Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009745/0.0009745, allocations: 85.05 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 145.2 kB / 24.9 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9312/0.9312, allocations: 173.4 MB / 201.5 MB, free: 8.27 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.983e-06/1.983e-06, allocations: 0 / 268.5 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.499e-05/3.697e-05, allocations: 2.312 kB / 268.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003702/0.003739, allocations: 1.629 MB / 270.1 MB, free: 8.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008663/0.004606, allocations: 420.4 kB / 270.5 MB, free: 7.75 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.745e-05/0.004673, allocations: 4 kB / 270.5 MB, free: 7.746 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.726e-05/0.004721, allocations: 11.86 kB / 270.5 MB, free: 7.734 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.004829, allocations: 11.81 kB / 270.5 MB, free: 7.723 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.005007, allocations: 17.77 kB / 270.5 MB, free: 7.707 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.005127, allocations: 63.77 kB / 270.6 MB, free: 7.645 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.005295, allocations: 35.91 kB / 270.6 MB, free: 7.609 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.00547, allocations: 43.89 kB / 270.7 MB, free: 7.566 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.91e-05/0.005539, allocations: 16.86 kB / 270.7 MB, free: 7.551 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.659e-05/0.005565, allocations: 8 kB / 270.7 MB, free: 7.543 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.389e-05/0.005579, allocations: 4 kB / 270.7 MB, free: 7.539 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.721e-05/0.005606, allocations: 14.2 kB / 270.7 MB, free: 7.527 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.234e-05/0.005639, allocations: 19.92 kB / 270.7 MB, free: 7.508 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.005781, allocations: 51.81 kB / 270.8 MB, free: 7.457 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.005784, allocations: 0 / 270.8 MB, free: 7.457 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.005786, allocations: 0 / 270.8 MB, free: 7.457 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.00579, allocations: 4 kB / 270.8 MB, free: 7.453 MB / 250.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.0004674/0.006257, allocations: 273.7 kB / 271.1 MB, free: 7.164 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.006302, allocations: 8.031 kB / 271.1 MB, free: 7.156 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.925e-05/0.006352, allocations: 13.47 kB / 271.1 MB, free: 7.145 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.006471, allocations: 126.1 kB / 271.2 MB, free: 6.996 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.006496, allocations: 4.375 kB / 271.2 MB, free: 6.992 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.966e-05/0.006516, allocations: 14.12 kB / 271.2 MB, free: 6.98 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.006697, allocations: 102.8 kB / 271.3 MB, free: 6.855 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.006708, allocations: 7.938 kB / 271.3 MB, free: 6.848 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.00672, allocations: 4 kB / 271.3 MB, free: 6.844 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.485e-06/0.006727, allocations: 0.5312 kB / 271.3 MB, free: 6.844 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.466e-05/0.006782, allocations: 29.14 kB / 271.4 MB, free: 6.816 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004984/0.00728, allocations: 0.5086 MB / 271.9 MB, free: 6.277 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.007393, allocations: 93.64 kB / 272 MB, free: 6.141 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.152e-05/0.007445, allocations: 38.78 kB / 272 MB, free: 6.09 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.007466, allocations: 8 kB / 272 MB, free: 6.082 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.007499, allocations: 38.55 kB / 272.1 MB, free: 6.035 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.753e-06/0.007501, allocations: 0 / 272.1 MB, free: 6.035 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002568/0.007758, allocations: 70.59 kB / 272.1 MB, free: 5.961 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.908e-05/0.007847, allocations: 158.2 kB / 272.3 MB, free: 5.77 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.007959, allocations: 130.5 kB / 272.4 MB, free: 5.629 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.007975, allocations: 25.7 kB / 272.4 MB, free: 5.598 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.574e-05/0.008031, allocations: 96.08 kB / 272.5 MB, free: 5.5 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.653e-05/0.008068, allocations: 19.83 kB / 272.5 MB, free: 5.48 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.574e-05/0.008113, allocations: 21.7 kB / 272.6 MB, free: 5.453 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.008242, allocations: 326.8 kB / 272.9 MB, free: 5.125 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.208e-05/0.008265, allocations: 4 kB / 272.9 MB, free: 5.121 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.127e-05/0.008306, allocations: 32.23 kB / 272.9 MB, free: 5.074 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.036e-05/0.008386, allocations: 52.25 kB / 273 MB, free: 5.008 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.008389, allocations: 0 / 273 MB, free: 5.008 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001178/0.008506, allocations: 61.61 kB / 273 MB, free: 4.941 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.008522, allocations: 7.938 kB / 273 MB, free: 4.934 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.008529, allocations: 0 / 273 MB, free: 4.934 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.008549, allocations: 8.141 kB / 273 MB, free: 4.926 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.138e-05/0.008641, allocations: 15.98 kB / 273.1 MB, free: 4.91 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.008644, allocations: 0 / 273.1 MB, free: 4.91 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.726e-05/0.008692, allocations: 4 kB / 273.1 MB, free: 4.906 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.318e-06/0.008701, allocations: 4 kB / 273.1 MB, free: 4.902 MB / 250.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 9.102e-05/0.008792, allocations: 121.8 kB / 273.2 MB, free: 4.773 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.982e-05/0.008882, allocations: 7.984 kB / 273.2 MB, free: 4.766 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.143e-05/0.008913, allocations: 15.58 kB / 273.2 MB, free: 4.746 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.008916, allocations: 3.938 kB / 273.2 MB, free: 4.742 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.614e-06/0.008919, allocations: 0 / 273.2 MB, free: 4.742 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.008922, allocations: 8 kB / 273.2 MB, free: 4.734 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003619/0.009284, allocations: 81.81 kB / 273.3 MB, free: 4.637 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.009286, allocations: 0 / 273.3 MB, free: 4.637 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.946e-05/0.009336, allocations: 11.98 kB / 273.3 MB, free: 4.625 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.009341, allocations: 4 kB / 273.3 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.00935, allocations: 8.125 kB / 273.3 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.009355, allocations: 4 kB / 273.3 MB, free: 4.609 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.009357, allocations: 0 / 273.3 MB, free: 4.609 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.00961, allocations: 452.5 kB / 273.8 MB, free: 4.148 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.608e-05/0.009626, allocations: 15.89 kB / 273.8 MB, free: 4.133 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.00964, allocations: 7.938 kB / 273.8 MB, free: 4.125 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.009861, allocations: 4 kB / 273.8 MB, free: 4.121 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.311e-05/0.009904, allocations: 11.98 kB / 273.8 MB, free: 4.109 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-06/0.009912, allocations: 4 kB / 273.8 MB, free: 4.105 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.782e-05/0.00994, allocations: 20.83 kB / 273.8 MB, free: 4.082 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00994, allocations: 0 / 273.8 MB, free: 4.082 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004229/0.01036, allocations: 11.95 kB / 273.8 MB, free: 4.07 MB / 250.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.0001063/0.01047, allocations: 80.36 kB / 273.9 MB, free: 3.984 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.01057, allocations: 36.72 kB / 274 MB, free: 3.945 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/0.01058, allocations: 4 kB / 274 MB, free: 3.941 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.551e-05/0.01061, allocations: 24.78 kB / 274 MB, free: 3.914 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.01115, allocations: 7.938 kB / 274 MB, free: 3.906 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006042/0.01175, allocations: 208.2 kB / 274.2 MB, free: 3.664 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.944e-05/0.01182, allocations: 63.34 kB / 274.3 MB, free: 3.582 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.756e-05/0.01186, allocations: 7.906 kB / 274.3 MB, free: 3.574 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.648e-05/0.01192, allocations: 59.38 kB / 274.3 MB, free: 3.516 MB / 250.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01192, allocations: 0 / 274.3 MB, free: 3.516 MB / 250.7 MB Notification: Performance of Templates: time 0.002782/0.0147, allocations: 0.4979 MB / 274.8 MB, free: 3.023 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.5678881388157606]