Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007596/0.0007596, allocations: 84 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003218/0.003218, allocations: 153.4 kB / 24.69 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.821/0.821, allocations: 173.4 MB / 201.2 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.02e-05/2.199e-05, allocations: 10.22 kB / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001976/0.001998, allocations: 1.57 MB / 321.2 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004788/0.002477, allocations: 410.9 kB / 321.6 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.549e-05/0.002523, allocations: 0 / 321.6 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.522e-05/0.002558, allocations: 11.88 kB / 321.7 MB, free: 3.867 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.783e-05/0.002626, allocations: 11.86 kB / 321.7 MB, free: 3.855 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000144/0.00277, allocations: 19.97 kB / 321.7 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.13e-05/0.002851, allocations: 63.72 kB / 321.8 MB, free: 3.773 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.002994, allocations: 35.92 kB / 321.8 MB, free: 3.738 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.86e-05/0.003092, allocations: 47.77 kB / 321.8 MB, free: 3.691 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.021e-05/0.003142, allocations: 27.91 kB / 321.9 MB, free: 3.664 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.003167, allocations: 4 kB / 321.9 MB, free: 3.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.889e-06/0.003177, allocations: 8 kB / 321.9 MB, free: 3.652 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.361e-05/0.003201, allocations: 15.92 kB / 321.9 MB, free: 3.637 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.252e-05/0.003224, allocations: 15.98 kB / 321.9 MB, free: 3.621 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001092/0.003333, allocations: 67.77 kB / 322 MB, free: 3.555 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.003335, allocations: 3.938 kB / 322 MB, free: 3.551 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.003336, allocations: 0 / 322 MB, free: 3.551 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.00334, allocations: 0 / 322 MB, free: 3.551 MB / 282.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.0003818/0.003722, allocations: 302.1 kB / 322.3 MB, free: 3.227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.003757, allocations: 12.92 kB / 322.3 MB, free: 3.215 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.102e-05/0.003788, allocations: 8.891 kB / 322.3 MB, free: 3.207 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.214e-05/0.00387, allocations: 117.6 kB / 322.4 MB, free: 3.066 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.003895, allocations: 8.375 kB / 322.4 MB, free: 3.059 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.003906, allocations: 4.375 kB / 322.4 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/0.004065, allocations: 122 kB / 322.5 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.004073, allocations: 0 / 322.5 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.004084, allocations: 8 kB / 322.5 MB, free: 2.906 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.004088, allocations: 0 / 322.5 MB, free: 2.906 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.004189, allocations: 59.84 kB / 322.6 MB, free: 2.848 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004396/0.004628, allocations: 0.5713 MB / 323.2 MB, free: 2.23 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.004735, allocations: 113 kB / 323.3 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.073e-05/0.004795, allocations: 56.34 kB / 323.3 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.004812, allocations: 4 kB / 323.3 MB, free: 2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.004835, allocations: 42.56 kB / 323.4 MB, free: 1.949 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 8.31e-07/0.004836, allocations: 0 / 323.4 MB, free: 1.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002704/0.005106, allocations: 117.5 kB / 323.5 MB, free: 1.828 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.005165, allocations: 162.1 kB / 323.7 MB, free: 1.633 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.734e-05/0.005232, allocations: 118.5 kB / 323.8 MB, free: 1.508 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.005244, allocations: 29.7 kB / 323.8 MB, free: 1.473 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.589e-05/0.00529, allocations: 108 kB / 323.9 MB, free: 1.363 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.005307, allocations: 11.91 kB / 323.9 MB, free: 1.352 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-05/0.005335, allocations: 21.72 kB / 323.9 MB, free: 1.324 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.51e-05/0.00541, allocations: 318.8 kB / 324.3 MB, free: 1.004 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.156e-05/0.005451, allocations: 23.92 kB / 324.3 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.041e-05/0.005502, allocations: 56.27 kB / 324.3 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.611e-05/0.005598, allocations: 80.2 kB / 324.4 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.0056, allocations: 0 / 324.4 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001163/0.005716, allocations: 97.53 kB / 324.5 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.005727, allocations: 4 kB / 324.5 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.005733, allocations: 8.156 kB / 324.5 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.005744, allocations: 0 / 324.5 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.368e-05/0.005808, allocations: 11.98 kB / 324.5 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.005814, allocations: 7.938 kB / 324.5 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.061e-05/0.005845, allocations: 11.89 kB / 324.5 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.005851, allocations: 4 kB / 324.6 MB, free: 0.668 MB / 282.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 5.671e-05/0.005907, allocations: 117.8 kB / 324.7 MB, free: 0.543 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.244e-05/0.00595, allocations: 8 kB / 324.7 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.029e-05/0.00597, allocations: 11.62 kB / 324.7 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.005972, allocations: 4 kB / 324.7 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.005976, allocations: 128 / 324.7 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.005981, allocations: 8 kB / 324.7 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002037/0.006185, allocations: 137.1 kB / 324.8 MB, free: 352 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.006185, allocations: 0 / 324.8 MB, free: 352 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.941e-05/0.006215, allocations: 15.98 kB / 324.8 MB, free: 336 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.006217, allocations: 0 / 324.8 MB, free: 336 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.006224, allocations: 4 kB / 324.9 MB, free: 332 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.006225, allocations: 3.938 kB / 324.9 MB, free: 328 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.006226, allocations: 0 / 324.9 MB, free: 328 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000221/0.006447, allocations: 492.5 kB / 325.3 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.185e-06/0.006455, allocations: 7.953 kB / 325.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.006468, allocations: 8 kB / 325.4 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.006585, allocations: 7.984 kB / 325.4 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/0.006628, allocations: 15.86 kB / 325.4 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.006632, allocations: 0 / 325.4 MB, free: 15.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.348e-05/0.006665, allocations: 95.28 kB / 325.5 MB, free: 15.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006665, allocations: 0 / 325.5 MB, free: 15.69 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.006901, allocations: 15.89 kB / 325.5 MB, free: 15.67 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 6.954e-05/0.006971, allocations: 99.23 kB / 325.6 MB, free: 15.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.007103, allocations: 59.91 kB / 325.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.007105, allocations: 0 / 325.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.068e-05/0.007155, allocations: 32.47 kB / 325.7 MB, free: 15.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.007483, allocations: 8.062 kB / 325.7 MB, free: 15.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003212/0.007804, allocations: 225.8 kB / 325.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.541e-05/0.007869, allocations: 71.58 kB / 326 MB, free: 15.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.826e-05/0.007898, allocations: 16.5 kB / 326 MB, free: 15.1 MB / 298.7 MB Notification: Performance of SimCode: time 3.8e-07/0.007898, allocations: 0 / 326 MB, free: 15.1 MB / 298.7 MB Notification: Performance of Templates: time 0.001556/0.009454, allocations: 0.9033 MB / 326.9 MB, free: 14.2 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 3.9974859105423093]