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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001324, allocations: 108.2 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001526/0.001526, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 68.28 kB / 306.4 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1269, allocations: 50.54 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00366/0.1306, allocations: 1.665 MB / 358.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000975/0.1316, allocations: 494.8 kB / 359.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.343e-05/0.1317, allocations: 4 kB / 359.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.198e-05/0.1318, allocations: 3.938 kB / 359.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.1319, allocations: 7.875 kB / 359.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.1322, allocations: 27.97 kB / 359.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001585/0.1324, allocations: 59.8 kB / 359.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002467/0.1326, allocations: 60.09 kB / 359.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.1328, allocations: 31.92 kB / 359.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.57e-05/0.1329, allocations: 31.8 kB / 359.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.453e-05/0.1329, allocations: 7.984 kB / 359.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.743e-05/0.133, allocations: 8 kB / 359.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.857e-05/0.133, allocations: 7.984 kB / 359.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.226e-05/0.1331, allocations: 35.8 kB / 359.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.1333, allocations: 72 kB / 359.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1333, allocations: 4 kB / 359.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.1333, allocations: 0 / 359.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.1333, allocations: 0 / 359.5 MB, free: 11.91 MB / 302.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.0006619/0.134, allocations: 379.1 kB / 359.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.1341, allocations: 12.03 kB / 359.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.1343, allocations: 20.83 kB / 359.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.1345, allocations: 184.2 kB / 360 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.1345, allocations: 4.375 kB / 360.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.592e-05/0.1346, allocations: 8.375 kB / 360.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.1349, allocations: 125.8 kB / 360.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.1349, allocations: 0 / 360.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.1349, allocations: 8 kB / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.135, allocations: 0 / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002456/0.1352, allocations: 59.89 kB / 360.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008396/0.1361, allocations: 0.6342 MB / 360.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.1363, allocations: 116.9 kB / 361 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/0.1365, allocations: 52.41 kB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.1365, allocations: 3.984 kB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/0.1365, allocations: 42.5 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.1365, allocations: 7.938 kB / 361.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006012/0.1371, allocations: 117.4 kB / 361.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.1373, allocations: 162.8 kB / 361.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.1374, allocations: 117.8 kB / 361.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.1374, allocations: 41.64 kB / 361.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.284e-05/0.1375, allocations: 95.97 kB / 361.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.698e-05/0.1375, allocations: 15.81 kB / 361.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.842e-05/0.1376, allocations: 17.72 kB / 361.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1377, allocations: 318.8 kB / 362 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.1379, allocations: 19.98 kB / 362 MB, free: 9.066 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.138, allocations: 64.2 kB / 362.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002414/0.1383, allocations: 76.2 kB / 362.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1383, allocations: 128 / 362.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003665/0.1387, allocations: 101.5 kB / 362.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1387, allocations: 4 kB / 362.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1387, allocations: 4 kB / 362.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1387, allocations: 0 / 362.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.1389, allocations: 20.08 kB / 362.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.1389, allocations: 4 kB / 362.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.112e-05/0.139, allocations: 7.938 kB / 362.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.139, allocations: 7.984 kB / 362.3 MB, free: 8.746 MB / 302.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 0.0001106/0.1391, allocations: 125.7 kB / 362.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.1393, allocations: 7.906 kB / 362.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.646e-05/0.1393, allocations: 11.48 kB / 362.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.1393, allocations: 7.984 kB / 362.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1393, allocations: 4 kB / 362.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.1394, allocations: 7.938 kB / 362.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005671/0.1399, allocations: 181.6 kB / 362.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.14, allocations: 3.984 kB / 362.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-05/0.1401, allocations: 11.94 kB / 362.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.211e-05/0.1401, allocations: 4 kB / 362.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.1401, allocations: 0 / 362.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.1401, allocations: 7.984 kB / 362.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1401, allocations: 0 / 362.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004586/0.1406, allocations: 496.4 kB / 363.1 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.523e-05/0.1406, allocations: 81.11 kB / 363.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.1407, allocations: 0 / 363.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003473/0.141, allocations: 15.98 kB / 363.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.472e-05/0.1411, allocations: 15.88 kB / 363.2 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.1411, allocations: 3.938 kB / 363.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.202e-05/0.1412, allocations: 95.27 kB / 363.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1412, allocations: 0 / 363.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006301/0.1418, allocations: 15.91 kB / 363.3 MB, free: 7.574 MB / 302.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.000112/0.142, allocations: 95.19 kB / 363.4 MB, free: 7.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003218/0.1423, allocations: 67.83 kB / 363.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1423, allocations: 0 / 363.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.1425, allocations: 35.92 kB / 363.5 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008296/0.1433, allocations: 7.984 kB / 363.5 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000535/0.1439, allocations: 215.3 kB / 363.8 MB, free: 7.117 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.1442, allocations: 0.6924 MB / 364.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.604e-05/0.1443, allocations: 7.938 kB / 364.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.857e-05/0.1443, allocations: 11.44 kB / 364.5 MB, free: 6.379 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1444, allocations: 0 / 364.5 MB, free: 6.379 MB / 302.1 MB Notification: Performance of Templates: time 0.003188/0.1475, allocations: 485.5 kB / 364.9 MB, free: 5.906 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches