Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 201.1 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009151/0.0009152, allocations: 95.55 kB / 299.9 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002675, allocations: 8 kB / 360.6 MB, free: 8.516 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2458, allocations: 51.42 MB / 412 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001514/0.2474, allocations: 1.298 MB / 413.3 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006368/0.248, allocations: 0.6644 MB / 414 MB, free: 23.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.227e-05/0.2481, allocations: 0.5312 kB / 414 MB, free: 23.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.537e-05/0.2481, allocations: 10.36 kB / 414 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.219e-05/0.2482, allocations: 15.86 kB / 414 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001329/0.2483, allocations: 15.98 kB / 414 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.298e-05/0.2484, allocations: 55.78 kB / 414.1 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.2486, allocations: 54.16 kB / 414.2 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.2488, allocations: 27.92 kB / 414.2 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.853e-05/0.2488, allocations: 19.86 kB / 414.2 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.2489, allocations: 4 kB / 414.2 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.107e-05/0.2489, allocations: 4 kB / 414.2 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.614e-05/0.2489, allocations: 7.938 kB / 414.2 MB, free: 23.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.361e-05/0.249, allocations: 52.44 kB / 414.3 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001091/0.2491, allocations: 65.31 kB / 414.3 MB, free: 23.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.2491, allocations: 0 / 414.3 MB, free: 23.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2491, allocations: 0 / 414.3 MB, free: 23.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.2491, allocations: 0 / 414.3 MB, free: 23.57 MB / 298.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.0004285/0.2496, allocations: 375.3 kB / 414.7 MB, free: 23.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.2496, allocations: 8.031 kB / 414.7 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.2497, allocations: 20.83 kB / 414.7 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.2499, allocations: 176.2 kB / 414.9 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.2499, allocations: 8.375 kB / 414.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.556e-05/0.2499, allocations: 4.375 kB / 414.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.2501, allocations: 122.2 kB / 415 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.2502, allocations: 7.938 kB / 415 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.2502, allocations: 0 / 415 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.2502, allocations: 4 kB / 415 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.2504, allocations: 71.89 kB / 415.1 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005429/0.2509, allocations: 0.6381 MB / 415.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.2511, allocations: 120.9 kB / 415.9 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.116e-05/0.2512, allocations: 60.39 kB / 415.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.2512, allocations: 8 kB / 415.9 MB, free: 21.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.2512, allocations: 38.5 kB / 416 MB, free: 21.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.2512, allocations: 4 kB / 416 MB, free: 21.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003918/0.2516, allocations: 141.5 kB / 416.1 MB, free: 21.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.2517, allocations: 154.8 kB / 416.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.547e-05/0.2518, allocations: 133.7 kB / 416.4 MB, free: 21.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.546e-06/0.2518, allocations: 25.7 kB / 416.4 MB, free: 21.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.531e-05/0.2518, allocations: 96.05 kB / 416.5 MB, free: 21.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.2518, allocations: 15.73 kB / 416.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.2518, allocations: 4 kB / 416.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.834e-05/0.2519, allocations: 314.8 kB / 416.8 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.061e-05/0.252, allocations: 23.98 kB / 416.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.259e-05/0.252, allocations: 64.2 kB / 416.9 MB, free: 20.65 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/0.2522, allocations: 88.2 kB / 417 MB, free: 20.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2522, allocations: 7.938 kB / 417 MB, free: 20.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000179/0.2524, allocations: 109.5 kB / 417.1 MB, free: 20.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.2524, allocations: 4 kB / 417.1 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2524, allocations: 3.938 kB / 417.1 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2524, allocations: 4 kB / 417.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.062e-05/0.2525, allocations: 20.14 kB / 417.2 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.2525, allocations: 0 / 417.2 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.897e-05/0.2526, allocations: 11.94 kB / 417.2 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.2526, allocations: 7.984 kB / 417.2 MB, free: 20.38 MB / 298.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.119e-05/0.2527, allocations: 120.4 kB / 417.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.439e-05/0.2528, allocations: 11.84 kB / 417.3 MB, free: 20.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.504e-05/0.2528, allocations: 7.531 kB / 417.3 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2528, allocations: 8 kB / 417.3 MB, free: 20.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2528, allocations: 0 / 417.3 MB, free: 20.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.2529, allocations: 7.938 kB / 417.3 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/0.2532, allocations: 185.6 kB / 417.5 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2532, allocations: 7.984 kB / 417.5 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.202e-05/0.2532, allocations: 11.94 kB / 417.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2532, allocations: 4 kB / 417.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.2533, allocations: 4 kB / 417.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2533, allocations: 7.984 kB / 417.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2533, allocations: 0 / 417.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002408/0.2535, allocations: 0.5005 MB / 418 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.936e-05/0.2535, allocations: 81.11 kB / 418.1 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.2536, allocations: 4 kB / 418.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.2538, allocations: 11.98 kB / 418.1 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.241e-05/0.2538, allocations: 7.938 kB / 418.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.2538, allocations: 0 / 418.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.938e-05/0.2539, allocations: 99.27 kB / 418.2 MB, free: 19.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2539, allocations: 0 / 418.2 MB, free: 19.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003216/0.2542, allocations: 15.91 kB / 418.3 MB, free: 19.19 MB / 298.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 7.921e-05/0.2543, allocations: 95.25 kB / 418.4 MB, free: 19.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001961/0.2545, allocations: 75.95 kB / 418.4 MB, free: 19.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2545, allocations: 0 / 418.4 MB, free: 19.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.418e-05/0.2546, allocations: 39.92 kB / 418.5 MB, free: 18.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.255, allocations: 7.938 kB / 418.5 MB, free: 18.97 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003186/0.2553, allocations: 224.5 kB / 418.7 MB, free: 18.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.2555, allocations: 0.6926 MB / 419.4 MB, free: 17.99 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.093e-05/0.2555, allocations: 4 kB / 419.4 MB, free: 17.99 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.346e-05/0.2556, allocations: 7.438 kB / 419.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of SimCode: time 7.41e-07/0.2556, allocations: 0 / 419.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of Templates: time 0.002117/0.2577, allocations: 470.6 kB / 419.9 MB, free: 17.52 MB / 298.7 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","../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches