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.0009715/0.0009715, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001036/0.001036, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.074/1.074, allocations: 177 MB / 204.8 MB, free: 5.598 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.383e-06/1.383e-06, allocations: 0 / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.56e-05/1.698e-05, allocations: 6.25 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001831/0.001848, allocations: 1.654 MB / 274.6 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005781/0.002426, allocations: 498.6 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.429e-05/0.00249, allocations: 4 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.533e-05/0.002525, allocations: 11.86 kB / 275.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.71e-05/0.002602, allocations: 7.875 kB / 275.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.002796, allocations: 35.89 kB / 275.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.002902, allocations: 63.72 kB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.003046, allocations: 28.2 kB / 275.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.00317, allocations: 47.83 kB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.928e-05/0.00322, allocations: 19.92 kB / 275.3 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.003236, allocations: 8 kB / 275.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.214e-05/0.003278, allocations: 15.98 kB / 275.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.544e-05/0.003293, allocations: 11.92 kB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.323e-05/0.003317, allocations: 12 kB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.003439, allocations: 63.73 kB / 275.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.003441, allocations: 3.938 kB / 275.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.003441, allocations: 0 / 275.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.003446, allocations: 0 / 275.4 MB, free: 14.99 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.0003385/0.003784, allocations: 404.3 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.003818, allocations: 12.03 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.873e-05/0.003917, allocations: 24.88 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.004039, allocations: 132.4 kB / 275.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.004056, allocations: 4.375 kB / 275.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.004067, allocations: 4.375 kB / 275.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001556/0.004223, allocations: 125.4 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.004232, allocations: 4.172 kB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.004242, allocations: 4.375 kB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.535e-06/0.004249, allocations: 3.938 kB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.839e-05/0.004298, allocations: 27.86 kB / 276.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003925/0.00469, allocations: 0.8078 MB / 276.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.502e-05/0.004785, allocations: 143.5 kB / 277 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.128e-05/0.004827, allocations: 50.42 kB / 277.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.004842, allocations: 4 kB / 277.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.004864, allocations: 41.39 kB / 277.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.004865, allocations: 0 / 277.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002019/0.005067, allocations: 85.95 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.005118, allocations: 154.2 kB / 277.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.882e-05/0.005196, allocations: 181.9 kB / 277.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.005207, allocations: 25.7 kB / 277.6 MB, free: 12.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.094e-05/0.005258, allocations: 150.8 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.689e-05/0.005274, allocations: 11.84 kB / 277.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.005304, allocations: 27.38 kB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.005454, allocations: 0.4961 MB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.839e-05/0.005472, allocations: 4 kB / 278.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.43e-05/0.005506, allocations: 54.42 kB / 278.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.289e-05/0.005559, allocations: 62.5 kB / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.005561, allocations: 3.938 kB / 278.4 MB, free: 11.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 7.943e-05/0.005641, allocations: 69.58 kB / 278.4 MB, free: 11.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.005651, allocations: 4 kB / 278.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.005657, allocations: 4.156 kB / 278.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.005672, allocations: 4 kB / 278.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.391e-05/0.005736, allocations: 15.92 kB / 278.5 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.00574, allocations: 0 / 278.5 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.903e-05/0.005769, allocations: 11.95 kB / 278.5 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.279e-06/0.005774, allocations: 128 / 278.5 MB, free: 11.49 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 6.453e-05/0.005839, allocations: 168.5 kB / 278.6 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.145e-05/0.00589, allocations: 8 kB / 278.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.205e-05/0.005912, allocations: 11.62 kB / 278.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.005915, allocations: 4 kB / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.005918, allocations: 4 kB / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.005921, allocations: 0 / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001989/0.006119, allocations: 140.5 kB / 278.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.006121, allocations: 4 kB / 278.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.517e-05/0.006146, allocations: 11.94 kB / 278.8 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.006148, allocations: 0 / 278.8 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.006156, allocations: 7.984 kB / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.006157, allocations: 0 / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.006158, allocations: 0 / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001962/0.006354, allocations: 0.6763 MB / 279.5 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.185e-06/0.006363, allocations: 11.95 kB / 279.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.044e-05/0.006373, allocations: 4 kB / 279.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.006477, allocations: 7.984 kB / 279.5 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.006515, allocations: 8 kB / 279.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.006519, allocations: 3.984 kB / 279.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.676e-05/0.006556, allocations: 131.6 kB / 279.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006556, allocations: 3.938 kB / 279.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000232/0.006788, allocations: 15.94 kB / 279.7 MB, free: 10.21 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 6.081e-05/0.006849, allocations: 95.23 kB / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.633e-05/0.006945, allocations: 51.48 kB / 279.8 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.006946, allocations: 0 / 279.8 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.571e-05/0.006972, allocations: 23.62 kB / 279.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.007296, allocations: 4.328 kB / 279.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004674/0.007763, allocations: 229.9 kB / 280.1 MB, free: 9.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.123e-05/0.007815, allocations: 59.34 kB / 280.1 MB, free: 9.672 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.094e-05/0.007835, allocations: 7.984 kB / 280.2 MB, free: 9.664 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.705e-05/0.007863, allocations: 8.5 kB / 280.2 MB, free: 9.656 MB / 266.7 MB Notification: Performance of SimCode: time 6.12e-07/0.007863, allocations: 0 / 280.2 MB, free: 9.656 MB / 266.7 MB Notification: Performance of Templates: time 0.001991/0.009854, allocations: 0.5651 MB / 280.7 MB, free: 9.098 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.8262001206167042]