Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001164/0.001164, allocations: 88.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 165.1 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.012/1.012, allocations: 177 MB / 205.2 MB, free: 5.055 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 273.4 MB, free: 1.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.318e-05/2.49e-05, allocations: 2.312 kB / 273.4 MB, free: 1.086 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003521/0.003546, allocations: 1.654 MB / 275 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.00466, allocations: 490.5 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.00477, allocations: 11.94 kB / 275.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.671e-05/0.004826, allocations: 7.875 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.004959, allocations: 15.84 kB / 275.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.00524, allocations: 31.91 kB / 275.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.00541, allocations: 59.78 kB / 275.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.005603, allocations: 28.2 kB / 275.7 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002143/0.005817, allocations: 47.83 kB / 275.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.239e-05/0.0059, allocations: 23.91 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.005922, allocations: 4 kB / 275.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.284e-05/0.005985, allocations: 19.94 kB / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.997e-05/0.006015, allocations: 15.91 kB / 275.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.136e-05/0.006047, allocations: 15.94 kB / 275.8 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001843/0.006231, allocations: 55.81 kB / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.006234, allocations: 0 / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.006235, allocations: 0 / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.00624, allocations: 0 / 275.8 MB, free: 14.6 MB / 266.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.0005237/0.006764, allocations: 288.7 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.006818, allocations: 8.031 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.006995, allocations: 16.92 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.007198, allocations: 133.5 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.007228, allocations: 8.375 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.007241, allocations: 4.375 kB / 276.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.007487, allocations: 107.2 kB / 276.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.007506, allocations: 8.125 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.007518, allocations: 384 / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.007531, allocations: 7.875 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.061e-05/0.007592, allocations: 19.92 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006155/0.008207, allocations: 0.5086 MB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.008358, allocations: 101.1 kB / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.458e-05/0.008422, allocations: 44.23 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.008444, allocations: 4 kB / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.008485, allocations: 34.56 kB / 277.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 2.885e-06/0.008488, allocations: 0 / 277.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003024/0.00879, allocations: 69.98 kB / 277.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.008934, allocations: 162.3 kB / 277.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.00908, allocations: 126.7 kB / 277.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.009108, allocations: 29.7 kB / 277.5 MB, free: 12.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.387e-05/0.009182, allocations: 88.09 kB / 277.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.676e-05/0.009229, allocations: 23.77 kB / 277.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.009284, allocations: 25.7 kB / 277.6 MB, free: 12.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.009474, allocations: 314.8 kB / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.993e-05/0.009494, allocations: 4 kB / 277.9 MB, free: 12.24 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.229e-05/0.009556, allocations: 40.22 kB / 278 MB, free: 12.19 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.711e-05/0.009653, allocations: 52.22 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.009657, allocations: 0 / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001385/0.009795, allocations: 61.55 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.009816, allocations: 4 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.009826, allocations: 4 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.009848, allocations: 3.938 kB / 278.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.009953, allocations: 16.14 kB / 278.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.009961, allocations: 4 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.879e-05/0.01001, allocations: 8 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.577e-06/0.01002, allocations: 0 / 278.1 MB, free: 12.02 MB / 266.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.0001124/0.01013, allocations: 109.8 kB / 278.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.205e-05/0.01021, allocations: 11.92 kB / 278.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.725e-05/0.01025, allocations: 11.62 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.01025, allocations: 3.938 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.01026, allocations: 4 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.01027, allocations: 3.938 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.01062, allocations: 89.86 kB / 278.4 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.01062, allocations: 4 kB / 278.4 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.573e-05/0.01068, allocations: 11.98 kB / 278.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.01068, allocations: 3.938 kB / 278.4 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.0107, allocations: 7.984 kB / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.0107, allocations: 0 / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.0107, allocations: 0 / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003229/0.01102, allocations: 452.7 kB / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.52e-05/0.01104, allocations: 8.016 kB / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.01106, allocations: 15.94 kB / 278.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.01127, allocations: 7.984 kB / 278.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.1e-05/0.01133, allocations: 8 kB / 278.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.01134, allocations: 3.984 kB / 278.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.505e-05/0.01138, allocations: 20.84 kB / 278.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01138, allocations: 0 / 278.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004133/0.01179, allocations: 19.94 kB / 278.9 MB, free: 11.19 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 0.000132/0.01192, allocations: 80.34 kB / 279 MB, free: 11.1 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000116/0.01204, allocations: 36.86 kB / 279 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.01204, allocations: 0 / 279 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.535e-05/0.01208, allocations: 20.78 kB / 279 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.01259, allocations: 15.94 kB / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006309/0.01322, allocations: 204.8 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.735e-05/0.01329, allocations: 59.36 kB / 279.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.35e-05/0.01332, allocations: 7.984 kB / 279.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.433e-05/0.01338, allocations: 51.38 kB / 279.4 MB, free: 10.64 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01338, allocations: 0 / 279.4 MB, free: 10.64 MB / 266.7 MB Notification: Performance of Templates: time 0.002735/0.01611, allocations: 0.5117 MB / 279.9 MB, free: 10.14 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.9254708499647677]