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.0008136/0.0008136, allocations: 79.73 kB / 21.97 MB, free: 2.594 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.000911/0.000911, allocations: 173.6 kB / 25.33 MB, free: 9.441 MB / 18.57 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.9763/0.9763, allocations: 158.6 MB / 187.2 MB, free: 2.527 MB / 170.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.924e-06/1.924e-06, allocations: 0 / 251 MB, free: 3.609 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.838e-05/3.031e-05, allocations: 2.312 kB / 251 MB, free: 3.605 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003631/0.003662, allocations: 1.637 MB / 252.7 MB, free: 1.953 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009453/0.004607, allocations: 459.8 kB / 253.1 MB, free: 1.496 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.902e-05/0.004676, allocations: 4 kB / 253.1 MB, free: 1.492 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.972e-05/0.004726, allocations: 7.875 kB / 253.1 MB, free: 1.484 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.004827, allocations: 7.875 kB / 253.1 MB, free: 1.477 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001896/0.005017, allocations: 19.97 kB / 253.2 MB, free: 1.457 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.005148, allocations: 71.77 kB / 253.2 MB, free: 1.387 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.005332, allocations: 31.86 kB / 253.3 MB, free: 1.355 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.005507, allocations: 39.89 kB / 253.3 MB, free: 1.316 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.22e-05/0.005579, allocations: 19.97 kB / 253.3 MB, free: 1.297 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.005608, allocations: 4 kB / 253.3 MB, free: 1.293 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.462e-05/0.005623, allocations: 12 kB / 253.3 MB, free: 1.281 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.196e-05/0.005645, allocations: 7.938 kB / 253.3 MB, free: 1.273 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.944e-05/0.005684, allocations: 27.91 kB / 253.4 MB, free: 1.246 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.005834, allocations: 51.75 kB / 253.4 MB, free: 1.195 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.005838, allocations: 3.938 kB / 253.4 MB, free: 1.191 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.00584, allocations: 0 / 253.4 MB, free: 1.191 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.005845, allocations: 0 / 253.4 MB, free: 1.191 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.0007875/0.006633, allocations: 400.4 kB / 253.8 MB, free: 0.7656 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.006676, allocations: 8.031 kB / 253.8 MB, free: 0.7578 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.318e-05/0.006739, allocations: 12.89 kB / 253.8 MB, free: 0.7461 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.006854, allocations: 124.5 kB / 254 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/0.006884, allocations: 8.375 kB / 254 MB, free: 0.5898 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.006899, allocations: 4.375 kB / 254 MB, free: 0.5859 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002424/0.007141, allocations: 133.2 kB / 254.1 MB, free: 436 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.007152, allocations: 4.188 kB / 254.1 MB, free: 432 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.007164, allocations: 384 / 254.1 MB, free: 432 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.007173, allocations: 3.938 kB / 254.1 MB, free: 428 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.998e-05/0.007253, allocations: 27.92 kB / 254.1 MB, free: 400 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006125/0.007865, allocations: 0.8078 MB / 254.9 MB, free: 15.53 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001108/0.007976, allocations: 143.4 kB / 255.1 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.626e-05/0.008022, allocations: 46.5 kB / 255.1 MB, free: 15.26 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.008038, allocations: 7.984 kB / 255.1 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.008061, allocations: 41.33 kB / 255.2 MB, free: 15.2 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.603e-06/0.008063, allocations: 0 / 255.2 MB, free: 15.2 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002164/0.008279, allocations: 74.09 kB / 255.2 MB, free: 15.12 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.008339, allocations: 162.2 kB / 255.4 MB, free: 14.93 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.794e-05/0.008427, allocations: 185.8 kB / 255.6 MB, free: 14.73 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.008439, allocations: 29.7 kB / 255.6 MB, free: 14.69 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.293e-05/0.008492, allocations: 138.8 kB / 255.7 MB, free: 14.55 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.008512, allocations: 19.83 kB / 255.8 MB, free: 14.53 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.008544, allocations: 23.38 kB / 255.8 MB, free: 14.5 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.008654, allocations: 0.4961 MB / 256.3 MB, free: 13.99 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.943e-05/0.008674, allocations: 4 kB / 256.3 MB, free: 13.99 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.563e-05/0.008709, allocations: 50.44 kB / 256.3 MB, free: 13.92 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.419e-05/0.008774, allocations: 70.36 kB / 256.4 MB, free: 13.83 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.008776, allocations: 0 / 256.4 MB, free: 13.83 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001075/0.008883, allocations: 73.52 kB / 256.5 MB, free: 13.75 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.0089, allocations: 4 kB / 256.5 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.008906, allocations: 0 / 256.5 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.008924, allocations: 4 kB / 256.5 MB, free: 13.74 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.726e-05/0.009021, allocations: 16.14 kB / 256.5 MB, free: 13.73 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.009028, allocations: 0 / 256.5 MB, free: 13.73 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.236e-05/0.00907, allocations: 4 kB / 256.5 MB, free: 13.72 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.009078, allocations: 4 kB / 256.5 MB, free: 13.72 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 8.778e-05/0.009166, allocations: 172.4 kB / 256.7 MB, free: 13.54 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.003e-05/0.009246, allocations: 7.953 kB / 256.7 MB, free: 13.53 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.96e-05/0.009286, allocations: 15.61 kB / 256.7 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.009289, allocations: 0 / 256.7 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.009295, allocations: 4 kB / 256.7 MB, free: 13.51 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.009298, allocations: 0 / 256.7 MB, free: 13.51 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000305/0.009603, allocations: 144.5 kB / 256.8 MB, free: 13.34 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.009606, allocations: 3.984 kB / 256.9 MB, free: 13.33 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.675e-05/0.009653, allocations: 8 kB / 256.9 MB, free: 13.32 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.009657, allocations: 4 kB / 256.9 MB, free: 13.32 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.009665, allocations: 0 / 256.9 MB, free: 13.32 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.009669, allocations: 4 kB / 256.9 MB, free: 13.32 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.00967, allocations: 3.938 kB / 256.9 MB, free: 13.31 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.009962, allocations: 0.6841 MB / 257.6 MB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.292e-05/0.009975, allocations: 7.953 kB / 257.6 MB, free: 12.6 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.009989, allocations: 0 / 257.6 MB, free: 12.6 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.01017, allocations: 8.188 kB / 257.6 MB, free: 12.59 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.418e-05/0.01023, allocations: 15.92 kB / 257.6 MB, free: 12.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.01024, allocations: 8 kB / 257.6 MB, free: 12.57 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.852e-05/0.01029, allocations: 131.2 kB / 257.7 MB, free: 12.44 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01029, allocations: 0 / 257.7 MB, free: 12.44 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003756/0.01066, allocations: 12 kB / 257.7 MB, free: 12.43 MB / 250.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.913e-05/0.01075, allocations: 95.23 kB / 257.8 MB, free: 12.32 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001187/0.01087, allocations: 39.8 kB / 257.9 MB, free: 12.28 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.01087, allocations: 4.062 kB / 257.9 MB, free: 12.27 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.664e-05/0.01091, allocations: 31.61 kB / 257.9 MB, free: 12.24 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005053/0.01141, allocations: 4 kB / 257.9 MB, free: 12.23 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005981/0.01201, allocations: 219.6 kB / 258.1 MB, free: 11.98 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.507e-05/0.01208, allocations: 59.67 kB / 258.2 MB, free: 11.9 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.713e-05/0.0121, allocations: 7.984 kB / 258.2 MB, free: 11.89 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.291e-05/0.01214, allocations: 12.5 kB / 258.2 MB, free: 11.88 MB / 250.7 MB Notification: Performance of SimCode: time 7.81e-07/0.01214, allocations: 0 / 258.2 MB, free: 11.88 MB / 250.7 MB Notification: Performance of Templates: time 0.002542/0.01468, allocations: 0.5769 MB / 258.8 MB, free: 11.3 MB / 250.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.696054005995393]