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.001169/0.001169, allocations: 104 kB / 17.16 MB, free: 6.32 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.001063/0.001063, allocations: 190 kB / 18.07 MB, free: 5.414 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.52/1.52, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.002173/0.002173, allocations: 43.94 kB / 280 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1408, allocations: 46.63 MB / 326.6 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.004456/0.1453, allocations: 1.637 MB / 328.2 MB, free: 3.227 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.000992/0.1463, allocations: 463.8 kB / 328.7 MB, free: 2.766 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.059e-05/0.1464, allocations: 0 / 328.7 MB, free: 2.766 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.566e-05/0.1466, allocations: 0 / 328.7 MB, free: 2.766 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001214/0.1467, allocations: 19.8 kB / 328.7 MB, free: 2.746 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.1469, allocations: 11.98 kB / 328.7 MB, free: 2.734 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.1471, allocations: 51.86 kB / 328.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002765/0.1473, allocations: 63.83 kB / 328.8 MB, free: 2.621 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.1475, allocations: 19.92 kB / 328.8 MB, free: 2.602 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.005e-05/0.1476, allocations: 31.84 kB / 328.9 MB, free: 2.57 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.1476, allocations: 4 kB / 328.9 MB, free: 2.566 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.775e-05/0.1477, allocations: 4 kB / 328.9 MB, free: 2.562 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.929e-05/0.1477, allocations: 19.91 kB / 328.9 MB, free: 2.543 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.967e-05/0.1478, allocations: 23.81 kB / 328.9 MB, free: 2.52 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.1479, allocations: 56.02 kB / 329 MB, free: 2.465 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1479, allocations: 4 kB / 329 MB, free: 2.461 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1479, allocations: 0 / 329 MB, free: 2.461 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.1479, allocations: 4 kB / 329 MB, free: 2.457 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.0008195/0.1488, allocations: 379.2 kB / 329.4 MB, free: 2.039 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.436e-05/0.1488, allocations: 8.031 kB / 329.4 MB, free: 2.031 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.884e-05/0.1489, allocations: 12.83 kB / 329.4 MB, free: 2.02 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.1492, allocations: 176.2 kB / 329.6 MB, free: 1.809 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.1492, allocations: 8.375 kB / 329.6 MB, free: 1.801 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.004e-05/0.1492, allocations: 4.375 kB / 329.6 MB, free: 1.797 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003346/0.1496, allocations: 114.3 kB / 329.7 MB, free: 1.664 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.1496, allocations: 3.938 kB / 329.7 MB, free: 1.66 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.1496, allocations: 7.938 kB / 329.7 MB, free: 1.652 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.1497, allocations: 4 kB / 329.7 MB, free: 1.648 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002213/0.1499, allocations: 55.89 kB / 329.7 MB, free: 1.594 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.151, allocations: 0.6497 MB / 330.4 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.1512, allocations: 113 kB / 330.5 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.1513, allocations: 60.33 kB / 330.6 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.1514, allocations: 0 / 330.6 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.1514, allocations: 34.56 kB / 330.6 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.1514, allocations: 0 / 330.6 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005362/0.152, allocations: 125.5 kB / 330.7 MB, free: 488 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.1521, allocations: 158.2 kB / 330.9 MB, free: 292 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.1522, allocations: 129.7 kB / 331 MB, free: 152 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.1523, allocations: 26.33 kB / 331 MB, free: 120 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.92e-05/0.1523, allocations: 104 kB / 331.1 MB, free: 12 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.1524, allocations: 11.8 kB / 331.1 MB, free: 0 / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.701e-05/0.1524, allocations: 25.7 kB / 331.2 MB, free: 15.97 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.1526, allocations: 318.8 kB / 331.5 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.359e-05/0.1527, allocations: 19.98 kB / 331.5 MB, free: 15.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.296e-05/0.1528, allocations: 52.28 kB / 331.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.153, allocations: 80.14 kB / 331.6 MB, free: 15.47 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.153, allocations: 0 / 331.6 MB, free: 15.47 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002239/0.1532, allocations: 97.59 kB / 331.7 MB, free: 15.37 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.1533, allocations: 4 kB / 331.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.1533, allocations: 4 kB / 331.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1533, allocations: 0 / 331.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.1534, allocations: 15.92 kB / 331.7 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.1534, allocations: 7.984 kB / 331.8 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.65e-05/0.1535, allocations: 16.2 kB / 331.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.1535, allocations: 8 kB / 331.8 MB, free: 15.31 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.763e-05/0.1536, allocations: 117.8 kB / 331.9 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.818e-05/0.1537, allocations: 7.906 kB / 331.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.415e-05/0.1538, allocations: 19.47 kB / 331.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1538, allocations: 0 / 331.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.1538, allocations: 0 / 331.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1538, allocations: 7.938 kB / 331.9 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003693/0.1542, allocations: 181.6 kB / 332.1 MB, free: 14.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1542, allocations: 4 kB / 332.1 MB, free: 14.92 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.976e-05/0.1542, allocations: 15.92 kB / 332.1 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1543, allocations: 4 kB / 332.1 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1543, allocations: 7.938 kB / 332.1 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.658e-06/0.1543, allocations: 4 kB / 332.1 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1543, allocations: 3.938 kB / 332.1 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003927/0.1547, allocations: 496.4 kB / 332.6 MB, free: 14.38 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.583e-05/0.1547, allocations: 85.02 kB / 332.7 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.1548, allocations: 0 / 332.7 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.155, allocations: 11.98 kB / 332.7 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.155, allocations: 15.92 kB / 332.7 MB, free: 14.25 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.1551, allocations: 4 kB / 332.7 MB, free: 14.25 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.281e-05/0.1551, allocations: 95.64 kB / 332.8 MB, free: 14.16 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1551, allocations: 0 / 332.8 MB, free: 14.16 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003621/0.1555, allocations: 12 kB / 332.8 MB, free: 14.14 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001292/0.1556, allocations: 95.19 kB / 332.9 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002427/0.1559, allocations: 59.97 kB / 333 MB, free: 13.98 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.1559, allocations: 4 kB / 333 MB, free: 13.98 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.156, allocations: 35.91 kB / 333 MB, free: 13.95 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.1565, allocations: 4 kB / 333 MB, free: 13.94 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004876/0.157, allocations: 220.8 kB / 333.3 MB, free: 13.69 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.1573, allocations: 0.6887 MB / 333.9 MB, free: 12.97 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.901e-05/0.1574, allocations: 11.94 kB / 334 MB, free: 12.96 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.013e-05/0.1574, allocations: 11.44 kB / 334 MB, free: 12.95 MB / 286.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1574, allocations: 0 / 334 MB, free: 12.95 MB / 286.1 MB Notification: Performance of Templates: time 0.002733/0.1602, allocations: 468.7 kB / 334.4 MB, free: 12.49 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