Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_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_trunk_cpp_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001526/0.001526, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.5 MB / 245.4 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000742/0.000742, allocations: 91.44 kB / 297.4 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002147/0.0002148, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.2001, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08688/0.2871, allocations: 77.71 MB / 486.4 MB, free: 13.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.2873, allocations: 63.97 kB / 486.4 MB, free: 13.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004118/0.2914, allocations: 1.613 MB / 488 MB, free: 12.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2914, allocations: 0 / 488 MB, free: 12.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.2915, allocations: 0 / 488 MB, free: 12.22 MB / 362.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.0004023/0.2919, allocations: 373.7 kB / 488.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2919, allocations: 16.03 kB / 488.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.292, allocations: 20.83 kB / 488.4 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.2922, allocations: 180.2 kB / 488.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.2922, allocations: 8.359 kB / 488.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.2922, allocations: 4.375 kB / 488.6 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.2924, allocations: 121.8 kB / 488.7 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.2925, allocations: 4.188 kB / 488.8 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.2925, allocations: 7.938 kB / 488.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.2925, allocations: 0 / 488.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.2927, allocations: 67.89 kB / 488.8 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005716/0.2933, allocations: 0.638 MB / 489.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.2934, allocations: 129 kB / 489.6 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.2936, allocations: 60.28 kB / 489.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.2936, allocations: 3.938 kB / 489.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.2936, allocations: 42.5 kB / 489.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.532e-06/0.2936, allocations: 0 / 489.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004581/0.2941, allocations: 133.9 kB / 489.8 MB, free: 10.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.2942, allocations: 162.2 kB / 490 MB, free: 9.992 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.985e-05/0.2943, allocations: 117.8 kB / 490.1 MB, free: 9.867 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.2943, allocations: 25.7 kB / 490.1 MB, free: 9.836 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.724e-05/0.2943, allocations: 96.38 kB / 490.2 MB, free: 9.738 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.911e-05/0.2944, allocations: 23.66 kB / 490.2 MB, free: 9.715 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-06/0.2944, allocations: 0 / 490.2 MB, free: 9.715 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.2945, allocations: 318.8 kB / 490.6 MB, free: 9.395 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.346e-05/0.2946, allocations: 27.97 kB / 490.6 MB, free: 9.367 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.059e-05/0.2947, allocations: 60.22 kB / 490.6 MB, free: 9.293 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.2949, allocations: 92.2 kB / 490.7 MB, free: 9.188 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2949, allocations: 0 / 490.7 MB, free: 9.188 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002231/0.2951, allocations: 101.6 kB / 490.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.2951, allocations: 4 kB / 490.8 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.2951, allocations: 7.938 kB / 490.8 MB, free: 9.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.2952, allocations: 0 / 490.8 MB, free: 9.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.906e-05/0.2953, allocations: 15.98 kB / 490.9 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.2953, allocations: 0 / 490.9 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.848e-05/0.2953, allocations: 20.14 kB / 490.9 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.2954, allocations: 7.938 kB / 490.9 MB, free: 9.027 MB / 362.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 (part.booleanExpression.y,booleanStep.y,integerStep.y) * 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 8.77e-05/0.2955, allocations: 121.8 kB / 491 MB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.716e-05/0.2956, allocations: 7.906 kB / 491 MB, free: 8.891 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.011e-05/0.2956, allocations: 11.52 kB / 491 MB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2956, allocations: 4 kB / 491 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2956, allocations: 0 / 491 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2956, allocations: 4 kB / 491 MB, free: 8.867 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003438/0.296, allocations: 189.6 kB / 491.2 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.296, allocations: 4 kB / 491.2 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.905e-05/0.2961, allocations: 19.92 kB / 491.2 MB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2961, allocations: 0 / 491.2 MB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.2961, allocations: 0 / 491.2 MB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.2961, allocations: 4 kB / 491.2 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2961, allocations: 0 / 491.2 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003395/0.2964, allocations: 0.4965 MB / 491.7 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.2965, allocations: 85.02 kB / 491.8 MB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.2965, allocations: 8 kB / 491.8 MB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.2967, allocations: 11.98 kB / 491.8 MB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.14e-05/0.2968, allocations: 15.91 kB / 491.9 MB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.2968, allocations: 192 / 491.9 MB, free: 7.953 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.492e-05/0.2968, allocations: 96.08 kB / 491.9 MB, free: 7.859 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2968, allocations: 0 / 491.9 MB, free: 7.859 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003547/0.2972, allocations: 16 kB / 492 MB, free: 7.844 MB / 362.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 (part.booleanExpression.y,booleanStep.y,integerStep.y) * 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.0001112/0.2973, allocations: 99.19 kB / 492.1 MB, free: 7.738 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002189/0.2976, allocations: 72.09 kB / 492.1 MB, free: 7.668 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2976, allocations: 4.062 kB / 492.1 MB, free: 7.664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.2977, allocations: 43.91 kB / 492.2 MB, free: 7.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004842/0.2982, allocations: 4.781 kB / 492.2 MB, free: 7.617 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000426/0.2986, allocations: 255.2 kB / 492.4 MB, free: 7.324 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.2989, allocations: 0.6887 MB / 493.1 MB, free: 6.609 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.226e-05/0.2989, allocations: 19.38 kB / 493.1 MB, free: 6.59 MB / 362.7 MB Notification: Performance of SimCode: time 2e-07/0.2989, allocations: 0 / 493.1 MB, free: 6.59 MB / 362.7 MB Notification: Performance of Templates: time 0.001976/0.3009, allocations: 0.8518 MB / 494 MB, free: 5.738 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches