Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001718/0.001718, allocations: 179.2 kB / 16.41 MB, free: 5.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.4 MB / 222.6 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007839/0.000784, allocations: 96.92 kB / 270.9 MB, free: 8.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002906, allocations: 12 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1981, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001461/0.1996, allocations: 1.284 MB / 375.8 MB, free: 44.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005177/0.2002, allocations: 447.9 kB / 376.3 MB, free: 44.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.35e-05/0.2002, allocations: 1.25 kB / 376.3 MB, free: 44.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.037e-05/0.2003, allocations: 5.188 kB / 376.3 MB, free: 44.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.081e-05/0.2003, allocations: 8.969 kB / 376.3 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001112/0.2005, allocations: 11.36 kB / 376.3 MB, free: 44.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.373e-05/0.2005, allocations: 57.22 kB / 376.3 MB, free: 44.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.2007, allocations: 44.66 kB / 376.4 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.899e-05/0.2008, allocations: 24 kB / 376.4 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.441e-05/0.2008, allocations: 17.89 kB / 376.4 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.2009, allocations: 2.125 kB / 376.4 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.758e-06/0.2009, allocations: 1.062 kB / 376.4 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.294e-05/0.2009, allocations: 14.03 kB / 376.4 MB, free: 43.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.984e-05/0.2009, allocations: 36.8 kB / 376.5 MB, free: 43.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.353e-05/0.201, allocations: 37.56 kB / 376.5 MB, free: 43.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.201, allocations: 1.344 kB / 376.5 MB, free: 43.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.201, allocations: 0 / 376.5 MB, free: 43.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.201, allocations: 4 kB / 376.5 MB, free: 43.87 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.0003683/0.2014, allocations: 370.6 kB / 376.9 MB, free: 43.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.2014, allocations: 9.281 kB / 376.9 MB, free: 43.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.177e-05/0.2015, allocations: 11.52 kB / 376.9 MB, free: 43.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.368e-05/0.2015, allocations: 171.5 kB / 377.1 MB, free: 43.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.2016, allocations: 9.984 kB / 377.1 MB, free: 43.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.2016, allocations: 3.969 kB / 377.1 MB, free: 43.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001997/0.2018, allocations: 114.2 kB / 377.2 MB, free: 43.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.2018, allocations: 1.438 kB / 377.2 MB, free: 43.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.2018, allocations: 4 kB / 377.2 MB, free: 43.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2018, allocations: 6.219 kB / 377.2 MB, free: 43.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.202, allocations: 71.67 kB / 377.3 MB, free: 43.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004717/0.2025, allocations: 0.6518 MB / 377.9 MB, free: 42.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.2027, allocations: 117.1 kB / 378 MB, free: 42.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.2028, allocations: 64.92 kB / 378.1 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.2028, allocations: 1.438 kB / 378.1 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.716e-05/0.2028, allocations: 37.56 kB / 378.2 MB, free: 42.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.2028, allocations: 0 / 378.2 MB, free: 42.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.000433/0.2033, allocations: 132.3 kB / 378.3 MB, free: 42.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.2033, allocations: 163.2 kB / 378.4 MB, free: 41.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.267e-05/0.2034, allocations: 127.3 kB / 378.6 MB, free: 41.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.677e-06/0.2034, allocations: 26.64 kB / 378.6 MB, free: 41.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.16e-05/0.2034, allocations: 91.27 kB / 378.7 MB, free: 41.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.2035, allocations: 22.75 kB / 378.7 MB, free: 41.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-06/0.2035, allocations: 0 / 378.7 MB, free: 41.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.741e-05/0.2035, allocations: 316.7 kB / 379 MB, free: 41.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.135e-05/0.2036, allocations: 28.67 kB / 379 MB, free: 41.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.279e-05/0.2037, allocations: 59.14 kB / 379.1 MB, free: 41.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.275e-05/0.2038, allocations: 35.17 kB / 379.1 MB, free: 41.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2038, allocations: 0 / 379.1 MB, free: 41.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002072/0.204, allocations: 102.3 kB / 379.2 MB, free: 41.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.204, allocations: 5.844 kB / 379.2 MB, free: 41.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.83e-06/0.204, allocations: 5.094 kB / 379.2 MB, free: 41.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.2041, allocations: 1.156 kB / 379.2 MB, free: 41.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.618e-05/0.2042, allocations: 23.45 kB / 379.3 MB, free: 41.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.2042, allocations: 1.156 kB / 379.3 MB, free: 41.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.737e-05/0.2042, allocations: 20.2 kB / 379.3 MB, free: 41.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.2043, allocations: 2.469 kB / 379.3 MB, free: 41.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.635e-05/0.2043, allocations: 119.2 kB / 379.4 MB, free: 41.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.442e-05/0.2044, allocations: 7.281 kB / 379.4 MB, free: 41.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.253e-05/0.2044, allocations: 13.89 kB / 379.4 MB, free: 41.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2044, allocations: 2.312 kB / 379.4 MB, free: 41.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2045, allocations: 1.031 kB / 379.4 MB, free: 41.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2045, allocations: 2.312 kB / 379.4 MB, free: 41.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003046/0.2048, allocations: 187.9 kB / 379.6 MB, free: 40.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2048, allocations: 5.219 kB / 379.6 MB, free: 40.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.937e-05/0.2049, allocations: 18.95 kB / 379.6 MB, free: 40.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2049, allocations: 2.312 kB / 379.6 MB, free: 40.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-06/0.2049, allocations: 2.281 kB / 379.6 MB, free: 40.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.2049, allocations: 5 kB / 379.6 MB, free: 40.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.2049, allocations: 1.062 kB / 379.6 MB, free: 40.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.2052, allocations: 0.4992 MB / 380.1 MB, free: 40.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.058e-05/0.2052, allocations: 99.23 kB / 380.2 MB, free: 40.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.2052, allocations: 6.312 kB / 380.3 MB, free: 40.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.2054, allocations: 7.281 kB / 380.3 MB, free: 40.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.2055, allocations: 8.078 kB / 380.3 MB, free: 40.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.2055, allocations: 3.062 kB / 380.3 MB, free: 40.24 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.195e-05/0.2055, allocations: 95.53 kB / 380.4 MB, free: 40.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2055, allocations: 0 / 380.4 MB, free: 40.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003344/0.2058, allocations: 12.38 kB / 380.4 MB, free: 40.15 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 (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 6.981e-05/0.2059, allocations: 96.94 kB / 380.5 MB, free: 40.06 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002176/0.2062, allocations: 66.92 kB / 380.5 MB, free: 40.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2062, allocations: 5.5 kB / 380.5 MB, free: 40.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.2063, allocations: 39.52 kB / 380.6 MB, free: 40.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004773/0.2068, allocations: 8.703 kB / 380.6 MB, free: 40.01 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003736/0.2071, allocations: 259 kB / 380.8 MB, free: 39.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001281/0.2073, allocations: 0.6944 MB / 381.5 MB, free: 39.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.007e-05/0.2073, allocations: 13.81 kB / 381.5 MB, free: 39.05 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2073, allocations: 0 / 381.5 MB, free: 39.05 MB / 298.7 MB Notification: Performance of Templates: time 0.001817/0.2091, allocations: 0.8596 MB / 382.4 MB, free: 38.61 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches