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.001207/0.001207, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.000982/0.000982, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9962/0.9962, allocations: 173.3 MB / 201.1 MB, free: 9.344 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.603e-06/1.603e-06, allocations: 0 / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.371e-05/2.532e-05, allocations: 2.312 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002161/0.002187, allocations: 1.634 MB / 269.6 MB, free: 4.812 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005731/0.00276, allocations: 422.8 kB / 270 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.653e-05/0.002816, allocations: 4 kB / 270 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.738e-05/0.002854, allocations: 7.875 kB / 270 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.942e-05/0.002933, allocations: 23.78 kB / 270.1 MB, free: 4.363 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001337/0.003067, allocations: 19.98 kB / 270.1 MB, free: 4.344 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.767e-05/0.003155, allocations: 59.78 kB / 270.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.003292, allocations: 27.97 kB / 270.2 MB, free: 4.258 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.0034, allocations: 39.84 kB / 270.2 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.03e-05/0.00345, allocations: 27.89 kB / 270.2 MB, free: 4.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.003471, allocations: 4 kB / 270.2 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.037e-05/0.003481, allocations: 8 kB / 270.2 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.788e-05/0.003499, allocations: 11.94 kB / 270.2 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.003525, allocations: 19.92 kB / 270.3 MB, free: 4.148 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.003631, allocations: 51.75 kB / 270.3 MB, free: 4.098 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.003633, allocations: 4 kB / 270.3 MB, free: 4.094 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.003634, allocations: 0 / 270.3 MB, free: 4.094 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.003638, allocations: 0 / 270.3 MB, free: 4.094 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.0004186/0.004056, allocations: 404.4 kB / 270.7 MB, free: 3.664 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.004093, allocations: 8.922 kB / 270.7 MB, free: 3.656 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.031e-05/0.004133, allocations: 16.89 kB / 270.7 MB, free: 3.641 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.724e-05/0.00422, allocations: 128.4 kB / 270.9 MB, free: 3.488 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.004241, allocations: 4.375 kB / 270.9 MB, free: 3.484 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.004254, allocations: 8.375 kB / 270.9 MB, free: 3.477 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.004419, allocations: 128.5 kB / 271 MB, free: 3.324 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.004428, allocations: 4 kB / 271 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.004438, allocations: 7.938 kB / 271 MB, free: 3.312 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.004445, allocations: 0 / 271 MB, free: 3.312 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.763e-05/0.004493, allocations: 23.92 kB / 271 MB, free: 3.289 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004652/0.004958, allocations: 0.8001 MB / 271.8 MB, free: 2.434 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.631e-05/0.005054, allocations: 135.5 kB / 272 MB, free: 2.238 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.498e-05/0.005099, allocations: 54.42 kB / 272 MB, free: 2.164 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.005113, allocations: 11.98 kB / 272 MB, free: 2.152 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.005136, allocations: 41.39 kB / 272.1 MB, free: 2.102 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.005138, allocations: 0 / 272.1 MB, free: 2.102 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002079/0.005345, allocations: 81.45 kB / 272.2 MB, free: 2.016 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.005394, allocations: 154.2 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.045e-05/0.005474, allocations: 185.8 kB / 272.5 MB, free: 1.629 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.005489, allocations: 29.7 kB / 272.5 MB, free: 1.594 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.636e-05/0.005545, allocations: 147.4 kB / 272.7 MB, free: 1.445 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.005566, allocations: 19.89 kB / 272.7 MB, free: 1.426 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.058e-05/0.005597, allocations: 23.38 kB / 272.7 MB, free: 1.395 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.005718, allocations: 0.4961 MB / 273.2 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.888e-05/0.005737, allocations: 4 kB / 273.2 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.774e-05/0.005775, allocations: 50.42 kB / 273.3 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.058e-05/0.005835, allocations: 66.31 kB / 273.3 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.005838, allocations: 0 / 273.3 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.514e-05/0.005923, allocations: 73.58 kB / 273.4 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.005935, allocations: 4 kB / 273.4 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.005939, allocations: 0 / 273.4 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.005952, allocations: 4 kB / 273.4 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.925e-05/0.006021, allocations: 16.05 kB / 273.4 MB, free: 0.625 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.006027, allocations: 4 kB / 273.4 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.07e-05/0.006057, allocations: 7.938 kB / 273.4 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.006065, allocations: 4 kB / 273.4 MB, free: 0.6094 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 0.0003594/0.006424, allocations: 168.7 kB / 273.6 MB, free: 444 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.494e-05/0.006479, allocations: 7.953 kB / 273.6 MB, free: 436 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.976e-05/0.006509, allocations: 11.62 kB / 273.6 MB, free: 420 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.006511, allocations: 0 / 273.6 MB, free: 420 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.006516, allocations: 4 kB / 273.6 MB, free: 416 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.00652, allocations: 0 / 273.6 MB, free: 416 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.006737, allocations: 140.5 kB / 273.8 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.006739, allocations: 3.938 kB / 273.8 MB, free: 236 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.015e-05/0.006769, allocations: 8 kB / 273.8 MB, free: 228 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.006772, allocations: 4 kB / 273.8 MB, free: 224 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.006781, allocations: 8 kB / 273.8 MB, free: 216 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.006784, allocations: 7.984 kB / 273.8 MB, free: 208 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.006786, allocations: 0 / 273.8 MB, free: 208 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/0.007054, allocations: 0.6763 MB / 274.5 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.108e-06/0.007063, allocations: 4 kB / 274.5 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.007075, allocations: 0 / 274.5 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.007181, allocations: 7.938 kB / 274.5 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.001e-05/0.007221, allocations: 15.92 kB / 274.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.007227, allocations: 4 kB / 274.5 MB, free: 15.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.855e-05/0.007266, allocations: 135.2 kB / 274.6 MB, free: 15.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007266, allocations: 4 kB / 274.6 MB, free: 15.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002363/0.007502, allocations: 11.95 kB / 274.6 MB, free: 15.32 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 7.059e-05/0.007573, allocations: 95.19 kB / 274.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.881e-05/0.007672, allocations: 39.61 kB / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.007673, allocations: 0 / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.774e-05/0.007701, allocations: 28.17 kB / 274.8 MB, free: 15.15 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.008129, allocations: 8.062 kB / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005111/0.00864, allocations: 220.5 kB / 275 MB, free: 14.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.007e-05/0.00869, allocations: 63.34 kB / 275.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.212e-05/0.008712, allocations: 0 / 275.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.695e-05/0.008739, allocations: 12.5 kB / 275.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.00874, allocations: 0 / 275.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of Templates: time 0.002294/0.01103, allocations: 0.5997 MB / 275.7 MB, free: 14.19 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.9463997492566705]