Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001241/0.001241, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.007966/0.007966, allocations: 161.2 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8973/0.8973, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.42e-05/3.644e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00216/0.002196, allocations: 1.612 MB / 327.4 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006252/0.002822, allocations: 474.7 kB / 327.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.427e-05/0.002896, allocations: 4 kB / 327.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.488e-05/0.002931, allocations: 7.875 kB / 327.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.472e-05/0.003006, allocations: 11.86 kB / 327.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002055/0.003211, allocations: 31.91 kB / 327.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.003322, allocations: 71.72 kB / 328 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.003483, allocations: 36.19 kB / 328 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.003621, allocations: 47.83 kB / 328.1 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.368e-05/0.003675, allocations: 19.92 kB / 328.1 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/0.00369, allocations: 4 kB / 328.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.166e-05/0.003732, allocations: 11.94 kB / 328.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.523e-05/0.003747, allocations: 15.92 kB / 328.1 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.254e-05/0.00377, allocations: 15.98 kB / 328.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.00391, allocations: 79.7 kB / 328.2 MB, free: 13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.003912, allocations: 0 / 328.2 MB, free: 13 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.003913, allocations: 0 / 328.2 MB, free: 13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.003917, allocations: 4 kB / 328.2 MB, free: 13 MB / 298.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.000387/0.004304, allocations: 302.1 kB / 328.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.004348, allocations: 8.031 kB / 328.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.004463, allocations: 20.84 kB / 328.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.004629, allocations: 133.5 kB / 328.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.00465, allocations: 8.375 kB / 328.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.00466, allocations: 4.375 kB / 328.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001727/0.004833, allocations: 122.1 kB / 328.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.004842, allocations: 8.125 kB / 328.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.004853, allocations: 4.375 kB / 328.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.004859, allocations: 3.938 kB / 328.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.004972, allocations: 55.89 kB / 328.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004525/0.005424, allocations: 0.5675 MB / 329.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.005536, allocations: 117.1 kB / 329.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.035e-05/0.005596, allocations: 52.22 kB / 329.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.005613, allocations: 4 kB / 329.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.005633, allocations: 38.56 kB / 329.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.005634, allocations: 3.938 kB / 329.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002711/0.005905, allocations: 129.9 kB / 329.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.00596, allocations: 158.2 kB / 330 MB, free: 11.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.998e-05/0.00603, allocations: 117.8 kB / 330.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/0.006041, allocations: 29.7 kB / 330.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.089e-05/0.006092, allocations: 100 kB / 330.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.006111, allocations: 19.83 kB / 330.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.006143, allocations: 25.7 kB / 330.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.706e-05/0.00622, allocations: 318.8 kB / 330.6 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.832e-05/0.006268, allocations: 19.98 kB / 330.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.981e-05/0.006318, allocations: 56.36 kB / 330.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.862e-05/0.006417, allocations: 80.2 kB / 330.7 MB, free: 10.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.006419, allocations: 3.938 kB / 330.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001277/0.006547, allocations: 97.55 kB / 330.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.006566, allocations: 4 kB / 330.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.006572, allocations: 0 / 330.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.006586, allocations: 4 kB / 330.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.036e-05/0.006666, allocations: 15.92 kB / 330.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.006671, allocations: 0 / 330.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.48e-05/0.006706, allocations: 16.11 kB / 330.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-06/0.006712, allocations: 160 / 330.8 MB, free: 10.09 MB / 298.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.395e-05/0.006776, allocations: 129.8 kB / 331 MB, free: 9.957 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.211e-05/0.006818, allocations: 7.953 kB / 331 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.172e-05/0.00684, allocations: 11.58 kB / 331 MB, free: 9.938 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.006843, allocations: 4 kB / 331 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.006848, allocations: 3.984 kB / 331 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.006851, allocations: 4 kB / 331 MB, free: 9.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.007048, allocations: 121.2 kB / 331.1 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.007049, allocations: 0 / 331.1 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.869e-05/0.007078, allocations: 11.98 kB / 331.1 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.00708, allocations: 11.94 kB / 331.1 MB, free: 9.754 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.007087, allocations: 0 / 331.1 MB, free: 9.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.007088, allocations: 4 kB / 331.1 MB, free: 9.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.00709, allocations: 0 / 331.1 MB, free: 9.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002191/0.007309, allocations: 492.5 kB / 331.6 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.348e-06/0.007318, allocations: 7.953 kB / 331.6 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.00733, allocations: 3.984 kB / 331.6 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.007441, allocations: 11.94 kB / 331.7 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.007479, allocations: 15.98 kB / 331.7 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.007483, allocations: 3.938 kB / 331.7 MB, free: 9.207 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.947e-05/0.007522, allocations: 99.2 kB / 331.8 MB, free: 9.109 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007522, allocations: 0 / 331.8 MB, free: 9.109 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002422/0.007764, allocations: 11.94 kB / 331.8 MB, free: 9.098 MB / 298.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.696e-05/0.007841, allocations: 95.25 kB / 331.9 MB, free: 8.996 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001373/0.007979, allocations: 68.08 kB / 331.9 MB, free: 8.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.007981, allocations: 0 / 331.9 MB, free: 8.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.642e-05/0.008027, allocations: 31.92 kB / 332 MB, free: 8.898 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003385/0.008366, allocations: 4 kB / 332 MB, free: 8.895 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003376/0.008703, allocations: 227 kB / 332.2 MB, free: 8.629 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.296e-05/0.008776, allocations: 79.45 kB / 332.3 MB, free: 8.531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.072e-05/0.008807, allocations: 12.5 kB / 332.3 MB, free: 8.52 MB / 298.7 MB Notification: Performance of SimCode: time 8.62e-07/0.008808, allocations: 0 / 332.3 MB, free: 8.52 MB / 298.7 MB Notification: Performance of Templates: time 0.001676/0.01048, allocations: 0.9267 MB / 333.2 MB, free: 7.59 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.10231055226177]