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.0007631/0.0007631, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009591/0.001722, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0006763/0.0006763, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009305/0.001607, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.8952/0.8952, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1359/1.031, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.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.312e-06/1.312e-06, allocations: 0 / 222 MB, free: 72 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.908e-05/2.039e-05, allocations: 2.312 kB / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002725/0.002746, allocations: 1.675 MB / 223.7 MB, free: 14.37 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005276/0.003273, allocations: 471.6 kB / 224.1 MB, free: 13.9 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.576e-05/0.003319, allocations: 0 / 224.1 MB, free: 13.9 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.377e-05/0.003353, allocations: 11.86 kB / 224.1 MB, free: 13.89 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.268e-05/0.003405, allocations: 15.86 kB / 224.1 MB, free: 13.88 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.815e-05/0.003483, allocations: 19.98 kB / 224.2 MB, free: 13.86 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 9e-05/0.003573, allocations: 55.78 kB / 224.2 MB, free: 13.8 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.003704, allocations: 39.91 kB / 224.3 MB, free: 13.76 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.003823, allocations: 43.84 kB / 224.3 MB, free: 13.72 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.676e-05/0.00389, allocations: 27.89 kB / 224.3 MB, free: 13.69 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.003913, allocations: 4 kB / 224.3 MB, free: 13.69 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.37e-05/0.003927, allocations: 4 kB / 224.3 MB, free: 13.68 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.061e-05/0.003947, allocations: 11.94 kB / 224.3 MB, free: 13.67 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.317e-05/0.00397, allocations: 12 kB / 224.4 MB, free: 13.66 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.00408, allocations: 51.7 kB / 224.4 MB, free: 13.61 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.421e-05/0.004094, allocations: 4 kB / 224.4 MB, free: 13.61 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.004095, allocations: 0 / 224.4 MB, free: 13.61 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.004106, allocations: 0 / 224.4 MB, free: 13.61 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.0003664/0.004472, allocations: 284.4 kB / 224.7 MB, free: 13.3 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.776e-05/0.0045, allocations: 12.03 kB / 224.7 MB, free: 13.29 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.004532, allocations: 8.922 kB / 224.7 MB, free: 13.29 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.442e-05/0.004616, allocations: 125.6 kB / 224.8 MB, free: 13.14 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.004638, allocations: 4.375 kB / 224.8 MB, free: 13.13 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.00465, allocations: 4.375 kB / 224.8 MB, free: 13.13 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001429/0.004793, allocations: 118.5 kB / 225 MB, free: 12.99 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.004801, allocations: 8.125 kB / 225 MB, free: 12.98 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.004808, allocations: 384 / 225 MB, free: 12.98 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.004816, allocations: 7.938 kB / 225 MB, free: 12.98 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.498e-05/0.004851, allocations: 19.92 kB / 225 MB, free: 12.96 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003928/0.005243, allocations: 0.5164 MB / 225.5 MB, free: 12.41 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.955e-05/0.005333, allocations: 101 kB / 225.6 MB, free: 12.27 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.167e-05/0.005365, allocations: 40.36 kB / 225.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.005378, allocations: 4 kB / 225.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.005404, allocations: 38.55 kB / 225.7 MB, free: 12.16 MB / 234.7 MB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.005406, allocations: 0 / 225.7 MB, free: 12.16 MB / 234.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001655/0.005571, allocations: 69.5 kB / 225.8 MB, free: 12.09 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.005627, allocations: 158.2 kB / 225.9 MB, free: 11.89 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.36e-05/0.005701, allocations: 130.6 kB / 226 MB, free: 11.75 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.709e-06/0.00571, allocations: 25.7 kB / 226.1 MB, free: 11.72 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.849e-05/0.005749, allocations: 100.6 kB / 226.2 MB, free: 11.62 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.005768, allocations: 11.84 kB / 226.2 MB, free: 11.61 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.005798, allocations: 29.7 kB / 226.2 MB, free: 11.57 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.439e-05/0.005882, allocations: 314.8 kB / 226.5 MB, free: 11.26 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.118e-05/0.005893, allocations: 4 kB / 226.5 MB, free: 11.25 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.778e-05/0.005921, allocations: 40.22 kB / 226.5 MB, free: 11.2 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.689e-05/0.005968, allocations: 48.22 kB / 226.6 MB, free: 11.14 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.005971, allocations: 0 / 226.6 MB, free: 11.14 MB / 234.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 7.17e-05/0.006042, allocations: 65.55 kB / 226.7 MB, free: 11.07 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.006057, allocations: 11.94 kB / 226.7 MB, free: 11.05 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.006062, allocations: 0 / 226.7 MB, free: 11.05 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.006075, allocations: 0 / 226.7 MB, free: 11.05 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.006177, allocations: 15.98 kB / 226.7 MB, free: 11.04 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.329e-06/0.006181, allocations: 0 / 226.7 MB, free: 11.04 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.361e-05/0.006225, allocations: 8 kB / 226.7 MB, free: 11.03 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.006234, allocations: 4 kB / 226.7 MB, free: 11.03 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 7.318e-05/0.006307, allocations: 114 kB / 226.8 MB, free: 10.91 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/0.006355, allocations: 11.92 kB / 226.8 MB, free: 10.89 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.219e-05/0.006377, allocations: 15.58 kB / 226.8 MB, free: 10.88 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.00638, allocations: 7.938 kB / 226.8 MB, free: 10.88 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.006382, allocations: 0 / 226.8 MB, free: 10.88 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.006387, allocations: 4 kB / 226.8 MB, free: 10.87 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003012/0.006688, allocations: 89.75 kB / 226.9 MB, free: 10.77 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.006691, allocations: 0 / 226.9 MB, free: 10.77 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-05/0.006744, allocations: 11.98 kB / 226.9 MB, free: 10.75 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.075e-05/0.006754, allocations: 7.938 kB / 227 MB, free: 10.75 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.00676, allocations: 7.984 kB / 227 MB, free: 10.74 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.006766, allocations: 4 kB / 227 MB, free: 10.73 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.006769, allocations: 3.984 kB / 227 MB, free: 10.73 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.006771, allocations: 4 kB / 227 MB, free: 10.73 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001818/0.006952, allocations: 452.7 kB / 227.4 MB, free: 10.27 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.006963, allocations: 3.938 kB / 227.4 MB, free: 10.26 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.007073, allocations: 7.984 kB / 227.4 MB, free: 10.25 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.576e-05/0.007108, allocations: 11.98 kB / 227.4 MB, free: 10.24 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.007113, allocations: 4 kB / 227.4 MB, free: 10.24 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.036e-05/0.007134, allocations: 20.78 kB / 227.5 MB, free: 10.21 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007134, allocations: 4 kB / 227.5 MB, free: 10.21 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002033/0.007337, allocations: 15.95 kB / 227.5 MB, free: 10.2 MB / 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 7.928e-05/0.007416, allocations: 80.34 kB / 227.6 MB, free: 10.11 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 7.449e-05/0.007491, allocations: 28.86 kB / 227.6 MB, free: 10.07 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.007497, allocations: 3.938 kB / 227.6 MB, free: 10.07 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 2.857e-05/0.007525, allocations: 25.44 kB / 227.6 MB, free: 10.04 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.007809, allocations: 20.2 kB / 227.6 MB, free: 10.02 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007339/0.008543, allocations: 218.5 kB / 227.9 MB, free: 9.773 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.697e-05/0.00859, allocations: 59.36 kB / 227.9 MB, free: 9.695 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 2.887e-05/0.008619, allocations: 3.984 kB / 227.9 MB, free: 9.691 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.203e-05/0.008661, allocations: 59.39 kB / 228 MB, free: 9.633 MB / 234.7 MB Notification: Performance of SimCode: time 7.11e-07/0.008662, allocations: 0 / 228 MB, free: 9.633 MB / 234.7 MB Notification: Performance of Templates: time 0.002176/0.01084, allocations: 0.5165 MB / 228.5 MB, free: 9.121 MB / 234.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4102619709447026]