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.001313/0.001313, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001179/0.001179, allocations: 170 kB / 24.82 MB, free: 9.254 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 0.942/0.942, allocations: 177 MB / 205.1 MB, free: 5.488 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 2.154e-06/2.154e-06, allocations: 0 / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.622e-05/2.837e-05, allocations: 2.312 kB / 273.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002321/0.002349, allocations: 1.652 MB / 275 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007828/0.003132, allocations: 494.5 kB / 275.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.626e-05/0.003208, allocations: 4 kB / 275.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.57e-05/0.003244, allocations: 7.875 kB / 275.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.739e-05/0.003321, allocations: 11.88 kB / 275.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.003507, allocations: 31.89 kB / 275.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001192/0.003626, allocations: 59.78 kB / 275.6 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.003766, allocations: 28.2 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/0.003919, allocations: 55.83 kB / 275.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.242e-05/0.003971, allocations: 19.92 kB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.003987, allocations: 4 kB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.344e-05/0.004031, allocations: 11.98 kB / 275.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.704e-05/0.004048, allocations: 15.92 kB / 275.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.261e-05/0.00407, allocations: 19.92 kB / 275.7 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.004196, allocations: 55.75 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.004199, allocations: 0 / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.0042, allocations: 0 / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.004204, allocations: 0 / 275.8 MB, free: 14.78 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.0004206/0.004624, allocations: 416.3 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.004667, allocations: 8.031 kB / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001306/0.004797, allocations: 16.89 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.004939, allocations: 132.4 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.004959, allocations: 8.375 kB / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-06/0.004969, allocations: 4.375 kB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001724/0.005142, allocations: 121.3 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.005149, allocations: 192 / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.005157, allocations: 8.312 kB / 276.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.005164, allocations: 7.938 kB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.311e-05/0.005207, allocations: 27.84 kB / 276.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004994/0.005707, allocations: 0.7811 MB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.005822, allocations: 143.5 kB / 277.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.127e-05/0.005874, allocations: 50.38 kB / 277.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.005896, allocations: 7.984 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.005924, allocations: 41.38 kB / 277.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 3.055e-06/0.005927, allocations: 4 kB / 277.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002317/0.006159, allocations: 77.45 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.006218, allocations: 158.2 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.171e-05/0.00631, allocations: 177.9 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/0.006321, allocations: 25.7 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.006375, allocations: 142.8 kB / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.006399, allocations: 23.83 kB / 278.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.94e-05/0.006438, allocations: 23.98 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.006565, allocations: 0.4923 MB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.562e-05/0.006581, allocations: 8 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.943e-05/0.00662, allocations: 54.42 kB / 278.7 MB, free: 11.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.97e-05/0.00668, allocations: 54.38 kB / 278.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.006683, allocations: 3.938 kB / 278.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001004/0.006783, allocations: 73.64 kB / 278.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.006797, allocations: 8 kB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.006805, allocations: 0 / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.006819, allocations: 4 kB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.849e-05/0.006887, allocations: 15.92 kB / 278.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.006891, allocations: 0 / 278.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.332e-05/0.006934, allocations: 7.953 kB / 278.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.006942, allocations: 4 kB / 278.9 MB, free: 11.31 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 8.108e-05/0.007023, allocations: 164.5 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.532e-05/0.007098, allocations: 4 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.717e-05/0.007125, allocations: 23.58 kB / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.007127, allocations: 0 / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.007129, allocations: 0 / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.007133, allocations: 4 kB / 279 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002978/0.00743, allocations: 113.2 kB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.007432, allocations: 4 kB / 279.2 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.17e-05/0.007474, allocations: 19.92 kB / 279.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.007479, allocations: 3.938 kB / 279.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.007486, allocations: 4 kB / 279.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.007488, allocations: 0 / 279.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.007491, allocations: 4 kB / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002796/0.00777, allocations: 0.6647 MB / 279.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.117e-05/0.007781, allocations: 11.89 kB / 279.9 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.007795, allocations: 8.188 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.007982, allocations: 11.98 kB / 279.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.155e-05/0.008013, allocations: 3.984 kB / 279.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.331e-06/0.00802, allocations: 8 kB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.9e-05/0.008069, allocations: 135.2 kB / 280 MB, free: 10.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008069, allocations: 0 / 280 MB, free: 10.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003682/0.008437, allocations: 11.94 kB / 280 MB, free: 10.07 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 8.407e-05/0.008521, allocations: 99.25 kB / 280.1 MB, free: 9.957 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.96e-05/0.008611, allocations: 39.55 kB / 280.2 MB, free: 9.914 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.008612, allocations: 0 / 280.2 MB, free: 9.914 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.95e-05/0.008642, allocations: 19.62 kB / 280.2 MB, free: 9.891 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005002/0.009142, allocations: 20.69 kB / 280.2 MB, free: 9.871 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005015/0.009644, allocations: 221.9 kB / 280.4 MB, free: 9.609 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.746e-05/0.009711, allocations: 59.34 kB / 280.5 MB, free: 9.531 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.917e-05/0.00974, allocations: 4 kB / 280.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.099e-05/0.009791, allocations: 70.2 kB / 280.6 MB, free: 9.457 MB / 266.7 MB Notification: Performance of SimCode: time 7.62e-07/0.009792, allocations: 0 / 280.6 MB, free: 9.457 MB / 266.7 MB Notification: Performance of Templates: time 0.002773/0.01257, allocations: 0.6155 MB / 281.2 MB, free: 8.844 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.571921218186617]