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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008838/0.0008838, allocations: 94.59 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.344e-05/1.346e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09439/0.09442, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3365/0.4309, allocations: 76.23 MB / 463.7 MB, free: 2.621 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4312, allocations: 65.94 kB / 463.7 MB, free: 2.559 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004226/0.4354, allocations: 1.502 MB / 465.2 MB, free: 1.062 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4355, allocations: 0 / 465.2 MB, free: 1.062 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.779e-05/0.4355, allocations: 4 kB / 465.3 MB, free: 1.059 MB / 330.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.0005371/0.436, allocations: 372.9 kB / 465.6 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.393e-05/0.4361, allocations: 15.98 kB / 465.6 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.193e-05/0.4362, allocations: 11.86 kB / 465.6 MB, free: 0.625 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.4364, allocations: 167 kB / 465.8 MB, free: 432 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.4364, allocations: 0 / 465.8 MB, free: 432 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.4364, allocations: 4 kB / 465.8 MB, free: 428 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001146/0.4365, allocations: 28 kB / 465.8 MB, free: 400 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.4367, allocations: 95.53 kB / 465.9 MB, free: 284 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.4367, allocations: 0 / 465.9 MB, free: 284 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.4368, allocations: 4.703 kB / 465.9 MB, free: 280 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.4368, allocations: 0 / 465.9 MB, free: 280 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006795/0.4375, allocations: 0.6075 MB / 466.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001234/0.4376, allocations: 101 kB / 466.6 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.956e-05/0.4377, allocations: 49.34 kB / 466.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.4377, allocations: 7.984 kB / 466.7 MB, free: 15.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.4377, allocations: 34.56 kB / 466.7 MB, free: 15.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.4377, allocations: 0 / 466.7 MB, free: 15.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002575/0.438, allocations: 77.41 kB / 466.8 MB, free: 15.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.57e-05/0.4381, allocations: 158.4 kB / 467 MB, free: 15.08 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.067e-05/0.4382, allocations: 109 kB / 467.1 MB, free: 14.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.4382, allocations: 25.7 kB / 467.1 MB, free: 14.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.501e-05/0.4383, allocations: 96.03 kB / 467.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.4383, allocations: 23.67 kB / 467.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.4383, allocations: 0 / 467.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.4384, allocations: 314.8 kB / 467.5 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.312e-05/0.4384, allocations: 8 kB / 467.5 MB, free: 14.49 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.885e-05/0.4385, allocations: 40.3 kB / 467.6 MB, free: 14.44 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.473e-05/0.4385, allocations: 19.92 kB / 467.6 MB, free: 14.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4385, allocations: 0 / 467.6 MB, free: 14.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001053/0.4386, allocations: 77.58 kB / 467.7 MB, free: 14.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.4387, allocations: 4 kB / 467.7 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.4387, allocations: 4 kB / 467.7 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.4387, allocations: 0 / 467.7 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.4388, allocations: 15.98 kB / 467.7 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.4388, allocations: 4.688 kB / 467.7 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.603e-05/0.4389, allocations: 8 kB / 467.7 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.46e-05/0.4389, allocations: 7.984 kB / 467.7 MB, free: 14.29 MB / 346.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 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.162e-05/0.439, allocations: 105 kB / 467.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.464e-05/0.4391, allocations: 11.86 kB / 467.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.834e-05/0.4391, allocations: 11.97 kB / 467.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.4391, allocations: 0 / 467.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4392, allocations: 4 kB / 467.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4392, allocations: 128 / 467.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.4395, allocations: 162.2 kB / 468 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4395, allocations: 0 / 468 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.589e-05/0.4396, allocations: 15.98 kB / 468 MB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.4396, allocations: 8 kB / 468 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.4396, allocations: 0 / 468 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.4396, allocations: 7.891 kB / 468 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4396, allocations: 4 kB / 468 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002549/0.4399, allocations: 0.4955 MB / 468.5 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.456e-05/0.4399, allocations: 81.11 kB / 468.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.44, allocations: 7.984 kB / 468.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.4402, allocations: 7.938 kB / 468.6 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.912e-05/0.4402, allocations: 15.92 kB / 468.6 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.4402, allocations: 4 kB / 468.6 MB, free: 13.26 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.787e-05/0.4403, allocations: 96.77 kB / 468.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4403, allocations: 0 / 468.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003451/0.4406, allocations: 8 kB / 468.7 MB, free: 13.16 MB / 346.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 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001081/0.4407, allocations: 103.1 kB / 468.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.4409, allocations: 32.12 kB / 468.9 MB, free: 13.01 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4409, allocations: 4.125 kB / 468.9 MB, free: 13.01 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.184e-05/0.4409, allocations: 19.94 kB / 468.9 MB, free: 12.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.4412, allocations: 4 kB / 468.9 MB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003/0.4415, allocations: 123.1 kB / 469 MB, free: 12.83 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.4418, allocations: 0.7005 MB / 469.7 MB, free: 12.1 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.566e-05/0.4418, allocations: 0 / 469.7 MB, free: 12.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.663e-05/0.4418, allocations: 11.44 kB / 469.7 MB, free: 12.09 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4419, allocations: 0 / 469.7 MB, free: 12.09 MB / 346.7 MB Notification: Performance of Templates: time 0.002137/0.444, allocations: 423 kB / 470.1 MB, free: 11.68 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches