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.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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.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=5000,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=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 92.25 kB / 16.95 MB, free: 6.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001818/0.001818, allocations: 177.2 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.848/1.848, allocations: 205.4 MB / 224 MB, free: 13.14 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005154/0.0005155, allocations: 16 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1187, allocations: 47.58 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002061/0.1208, allocations: 1.283 MB / 329.6 MB, free: 2.789 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.000743/0.1216, allocations: 440.2 kB / 330.1 MB, free: 2.352 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.303e-05/0.1216, allocations: 0 / 330.1 MB, free: 2.352 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.064e-05/0.1217, allocations: 7.938 kB / 330.1 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.826e-05/0.1218, allocations: 7.922 kB / 330.1 MB, free: 2.336 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001424/0.1219, allocations: 15.98 kB / 330.1 MB, free: 2.32 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 9.211e-05/0.122, allocations: 55.72 kB / 330.1 MB, free: 2.266 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.1222, allocations: 39.91 kB / 330.2 MB, free: 2.227 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.259e-05/0.1223, allocations: 23.86 kB / 330.2 MB, free: 2.203 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.912e-05/0.1224, allocations: 19.92 kB / 330.2 MB, free: 2.184 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.619e-05/0.1224, allocations: 0 / 330.2 MB, free: 2.184 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.237e-05/0.1224, allocations: 4 kB / 330.2 MB, free: 2.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.551e-05/0.1225, allocations: 7.922 kB / 330.2 MB, free: 2.172 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.267e-05/0.1225, allocations: 37.64 kB / 330.3 MB, free: 2.129 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 8.603e-05/0.1226, allocations: 43.89 kB / 330.3 MB, free: 2.086 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1226, allocations: 4 kB / 330.3 MB, free: 2.082 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1226, allocations: 0 / 330.3 MB, free: 2.082 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1226, allocations: 4 kB / 330.3 MB, free: 2.078 MB / 270.1 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.000521/0.1232, allocations: 371.4 kB / 330.7 MB, free: 1.668 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.1232, allocations: 8.031 kB / 330.7 MB, free: 1.66 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.104e-05/0.1233, allocations: 11.89 kB / 330.7 MB, free: 1.648 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.1234, allocations: 174.9 kB / 330.9 MB, free: 1.438 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.1235, allocations: 11.95 kB / 330.9 MB, free: 1.426 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.1235, allocations: 8 kB / 330.9 MB, free: 1.418 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002437/0.1237, allocations: 113.9 kB / 331 MB, free: 1.285 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1238, allocations: 0 / 331 MB, free: 1.285 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.1238, allocations: 8 kB / 331 MB, free: 1.277 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.1238, allocations: 0 / 331 MB, free: 1.277 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.124, allocations: 71.89 kB / 331.1 MB, free: 1.207 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007446/0.1248, allocations: 0.6419 MB / 331.7 MB, free: 0.5 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.125, allocations: 117.1 kB / 331.8 MB, free: 348 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.1251, allocations: 68.27 kB / 331.9 MB, free: 264 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.1251, allocations: 3.938 kB / 331.9 MB, free: 260 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.1252, allocations: 38.56 kB / 331.9 MB, free: 212 kB / 270.1 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.1252, allocations: 4 kB / 332 MB, free: 208 kB / 270.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004652/0.1256, allocations: 130.1 kB / 332.1 MB, free: 72 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.1258, allocations: 166.2 kB / 332.2 MB, free: 15.87 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.1259, allocations: 129.6 kB / 332.4 MB, free: 15.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.1259, allocations: 25.7 kB / 332.4 MB, free: 15.7 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.22e-05/0.126, allocations: 99.97 kB / 332.5 MB, free: 15.6 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.126, allocations: 15.81 kB / 332.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.126, allocations: 0 / 332.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1262, allocations: 318.8 kB / 332.8 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.927e-05/0.1263, allocations: 28.02 kB / 332.8 MB, free: 15.24 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.986e-05/0.1264, allocations: 56.27 kB / 332.9 MB, free: 15.17 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.239e-05/0.1265, allocations: 31.98 kB / 332.9 MB, free: 15.14 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1265, allocations: 0 / 332.9 MB, free: 15.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002567/0.1267, allocations: 109.5 kB / 333 MB, free: 15.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.1268, allocations: 11.94 kB / 333.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.1268, allocations: 3.984 kB / 333.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1268, allocations: 0 / 333.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.1269, allocations: 15.98 kB / 333.1 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.1269, allocations: 8.094 kB / 333.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.816e-05/0.127, allocations: 15.86 kB / 333.1 MB, free: 14.97 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.127, allocations: 4 kB / 333.1 MB, free: 14.96 MB / 286.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001416/0.1272, allocations: 121.8 kB / 333.2 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.657e-05/0.1273, allocations: 4 kB / 333.2 MB, free: 14.83 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.005e-05/0.1273, allocations: 15.48 kB / 333.2 MB, free: 14.82 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1273, allocations: 0 / 333.2 MB, free: 14.82 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.1274, allocations: 4 kB / 333.2 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.1274, allocations: 4 kB / 333.2 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004218/0.1278, allocations: 189.5 kB / 333.4 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1278, allocations: 3.938 kB / 333.4 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.937e-05/0.1279, allocations: 15.98 kB / 333.4 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1279, allocations: 0 / 333.4 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1279, allocations: 8 kB / 333.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1279, allocations: 3.938 kB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1279, allocations: 4 kB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004009/0.1283, allocations: 0.489 MB / 334 MB, free: 14.03 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.48e-05/0.1284, allocations: 93 kB / 334 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.1284, allocations: 3.984 kB / 334 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.1287, allocations: 8 kB / 334.1 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.1287, allocations: 15.92 kB / 334.1 MB, free: 13.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.1287, allocations: 4 kB / 334.1 MB, free: 13.89 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.539e-05/0.1288, allocations: 95.22 kB / 334.2 MB, free: 13.8 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1288, allocations: 0 / 334.2 MB, free: 13.8 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003713/0.1292, allocations: 12 kB / 334.2 MB, free: 13.79 MB / 286.1 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 (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.0001157/0.1293, allocations: 95.25 kB / 334.3 MB, free: 13.68 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002713/0.1296, allocations: 72.14 kB / 334.3 MB, free: 13.61 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.1296, allocations: 4 kB / 334.3 MB, free: 13.61 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.1297, allocations: 35.92 kB / 334.4 MB, free: 13.57 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005335/0.1303, allocations: 8 kB / 334.4 MB, free: 13.57 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005259/0.1308, allocations: 244 kB / 334.6 MB, free: 13.29 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.1312, allocations: 0.6965 MB / 335.3 MB, free: 12.57 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.706e-05/0.1312, allocations: 3.938 kB / 335.3 MB, free: 12.57 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.194e-05/0.1313, allocations: 15.42 kB / 335.3 MB, free: 12.55 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1313, allocations: 0 / 335.3 MB, free: 12.55 MB / 286.1 MB Notification: Performance of Templates: time 0.002754/0.134, allocations: 440.9 kB / 335.8 MB, free: 12.12 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches