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.0007944/0.0007944, allocations: 68.08 kB / 21.69 MB, free: 2.859 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.0008739/0.0008739, allocations: 143.2 kB / 24.98 MB, free: 8.902 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 1.009/1.009, allocations: 173.4 MB / 201.5 MB, free: 9.328 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.843e-06/1.843e-06, allocations: 3.938 kB / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.289e-05/2.474e-05, allocations: 6.25 kB / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002212/0.002237, allocations: 1.627 MB / 269.7 MB, free: 5.094 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006988/0.002936, allocations: 426.8 kB / 270.1 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.565e-05/0.002991, allocations: 4 kB / 270.1 MB, free: 4.672 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.568e-05/0.003027, allocations: 7.875 kB / 270.1 MB, free: 4.664 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.17e-05/0.003109, allocations: 11.81 kB / 270.1 MB, free: 4.652 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001467/0.003256, allocations: 19.97 kB / 270.1 MB, free: 4.633 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.003357, allocations: 59.78 kB / 270.2 MB, free: 4.574 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.003518, allocations: 39.91 kB / 270.2 MB, free: 4.535 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.003639, allocations: 35.91 kB / 270.3 MB, free: 4.5 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.18e-05/0.003701, allocations: 27.89 kB / 270.3 MB, free: 4.473 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.003725, allocations: 4 kB / 270.3 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.879e-06/0.003735, allocations: 8 kB / 270.3 MB, free: 4.461 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.495e-05/0.00375, allocations: 7.938 kB / 270.3 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.826e-05/0.003779, allocations: 23.92 kB / 270.3 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.275e-05/0.003871, allocations: 55.73 kB / 270.4 MB, free: 4.375 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.003873, allocations: 0 / 270.4 MB, free: 4.375 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.003874, allocations: 0 / 270.4 MB, free: 4.375 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.155e-06/0.003877, allocations: 4 kB / 270.4 MB, free: 4.371 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.000323/0.0042, allocations: 400.4 kB / 270.8 MB, free: 3.945 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.004234, allocations: 8.922 kB / 270.8 MB, free: 3.938 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.304e-05/0.004267, allocations: 12.89 kB / 270.8 MB, free: 3.926 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.073e-05/0.004337, allocations: 124.4 kB / 270.9 MB, free: 3.777 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.004354, allocations: 8.375 kB / 270.9 MB, free: 3.77 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.998e-06/0.004364, allocations: 4.375 kB / 271 MB, free: 3.766 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.004502, allocations: 132.5 kB / 271.1 MB, free: 3.609 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.21e-06/0.004507, allocations: 4 kB / 271.1 MB, free: 3.605 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.004515, allocations: 4 kB / 271.1 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.00452, allocations: 0 / 271.1 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.924e-05/0.004569, allocations: 27.92 kB / 271.1 MB, free: 3.574 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004245/0.004994, allocations: 0.7962 MB / 271.9 MB, free: 2.723 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.131e-05/0.005085, allocations: 143.4 kB / 272.1 MB, free: 2.52 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.163e-05/0.005127, allocations: 42.5 kB / 272.1 MB, free: 2.457 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.005139, allocations: 7.984 kB / 272.1 MB, free: 2.449 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.00516, allocations: 45.39 kB / 272.1 MB, free: 2.395 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 8.42e-07/0.005161, allocations: 7.938 kB / 272.2 MB, free: 2.387 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001706/0.005331, allocations: 77.52 kB / 272.2 MB, free: 2.305 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.005377, allocations: 154.2 kB / 272.4 MB, free: 2.117 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002328/0.00561, allocations: 185.8 kB / 272.6 MB, free: 1.918 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.005623, allocations: 29.7 kB / 272.6 MB, free: 1.883 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.789e-05/0.005671, allocations: 142.8 kB / 272.7 MB, free: 1.738 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.005688, allocations: 19.89 kB / 272.8 MB, free: 1.719 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.005716, allocations: 24 kB / 272.8 MB, free: 1.688 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.005816, allocations: 0.5 MB / 273.3 MB, free: 1.176 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.581e-05/0.005832, allocations: 4 kB / 273.3 MB, free: 1.172 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.237e-05/0.005864, allocations: 46.38 kB / 273.3 MB, free: 1.105 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.439e-05/0.005919, allocations: 70.36 kB / 273.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.00592, allocations: 0 / 273.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.218e-05/0.006002, allocations: 73.55 kB / 273.5 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.006015, allocations: 4 kB / 273.5 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.00602, allocations: 128 / 273.5 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.006032, allocations: 4 kB / 273.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.032e-05/0.006102, allocations: 15.98 kB / 273.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.006108, allocations: 0 / 273.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.237e-05/0.00614, allocations: 11.94 kB / 273.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.006148, allocations: 4 kB / 273.5 MB, free: 0.8984 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 6.497e-05/0.006213, allocations: 160.6 kB / 273.7 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.921e-05/0.006262, allocations: 16.02 kB / 273.7 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.511e-05/0.006287, allocations: 19.59 kB / 273.7 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.006289, allocations: 0 / 273.7 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.006293, allocations: 4 kB / 273.7 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.006297, allocations: 0 / 273.7 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002103/0.006507, allocations: 136.5 kB / 273.8 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.006509, allocations: 3.984 kB / 273.8 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.373e-05/0.006533, allocations: 8 kB / 273.8 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.006535, allocations: 4 kB / 273.8 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.006543, allocations: 0 / 273.8 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.006546, allocations: 4 kB / 273.9 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.006547, allocations: 4 kB / 273.9 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.006771, allocations: 0.6802 MB / 274.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.883e-06/0.006778, allocations: 4 kB / 274.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.00679, allocations: 4 kB / 274.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.006906, allocations: 7.938 kB / 274.6 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.006948, allocations: 11.92 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-06/0.006952, allocations: 4 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.765e-05/0.00699, allocations: 135.2 kB / 274.7 MB, free: 15.63 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00699, allocations: 0 / 274.7 MB, free: 15.63 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000242/0.007232, allocations: 15.95 kB / 274.7 MB, free: 15.61 MB / 266.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 6.924e-05/0.007301, allocations: 103.1 kB / 274.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.322e-05/0.007394, allocations: 35.61 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.007396, allocations: 0 / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.026e-05/0.007426, allocations: 31.61 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.007768, allocations: 4 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005045/0.008273, allocations: 225.1 kB / 275.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.123e-05/0.008324, allocations: 59.36 kB / 275.2 MB, free: 15.08 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.118e-05/0.008345, allocations: 3.984 kB / 275.2 MB, free: 15.08 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.965e-05/0.008375, allocations: 16.5 kB / 275.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of SimCode: time 7.22e-07/0.008375, allocations: 0 / 275.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of Templates: time 0.002055/0.01043, allocations: 0.5601 MB / 275.7 MB, free: 14.51 MB / 266.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.698524445993826]