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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001624/0.001624, allocations: 172.9 kB / 8.15 MB, free: 2.121 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.665/1.665, allocations: 205.2 MB / 213.7 MB, free: 13.94 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.00129/0.00129, allocations: 90.77 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.458e-05/1.472e-05, allocations: 4 kB / 314.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2694, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1172/0.3867, allocations: 75.28 MB / 437.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.387, allocations: 64.47 kB / 437.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005571/0.3926, allocations: 1.146 MB / 438.3 MB, free: 9.609 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.3926, allocations: 3.938 kB / 438.3 MB, free: 9.605 MB / 330.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.0004816/0.3931, allocations: 369.1 kB / 438.7 MB, free: 9.203 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.3932, allocations: 15.22 kB / 438.7 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.642e-05/0.3932, allocations: 10.97 kB / 438.7 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.3934, allocations: 174.9 kB / 438.9 MB, free: 8.973 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.3934, allocations: 0 / 438.9 MB, free: 8.973 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.936e-05/0.3935, allocations: 4 kB / 438.9 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001285/0.3936, allocations: 26.53 kB / 438.9 MB, free: 8.945 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.3938, allocations: 96.72 kB / 439 MB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3938, allocations: 0 / 439 MB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.3938, allocations: 0 / 439 MB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.3939, allocations: 3.938 kB / 439 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007636/0.3946, allocations: 0.6109 MB / 439.6 MB, free: 8.168 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000138/0.3948, allocations: 101 kB / 439.7 MB, free: 8.023 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.076e-05/0.3949, allocations: 46.28 kB / 439.8 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.975e-05/0.3949, allocations: 0 / 439.8 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.395, allocations: 38.56 kB / 439.8 MB, free: 7.914 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.395, allocations: 3.938 kB / 439.8 MB, free: 7.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003372/0.3953, allocations: 69.59 kB / 439.9 MB, free: 7.836 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.32e-05/0.3954, allocations: 158.2 kB / 440 MB, free: 7.645 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.3955, allocations: 108.9 kB / 440.1 MB, free: 7.531 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.3956, allocations: 25.7 kB / 440.2 MB, free: 7.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.953e-05/0.3956, allocations: 158.5 kB / 440.3 MB, free: 7.344 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.751e-05/0.3957, allocations: 15.75 kB / 440.3 MB, free: 7.328 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.062e-06/0.3957, allocations: 0 / 440.3 MB, free: 7.328 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3958, allocations: 318.9 kB / 440.6 MB, free: 7.008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.237e-05/0.3959, allocations: 12 kB / 440.6 MB, free: 6.996 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.198e-05/0.3959, allocations: 40.23 kB / 440.7 MB, free: 6.941 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.6e-05/0.396, allocations: 8 kB / 440.7 MB, free: 6.934 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.396, allocations: 4 kB / 440.7 MB, free: 6.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001724/0.3962, allocations: 65.62 kB / 440.8 MB, free: 6.859 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.3962, allocations: 4 kB / 440.8 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.3962, allocations: 0 / 440.8 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3963, allocations: 7.984 kB / 440.8 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.3964, allocations: 16.69 kB / 440.8 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.3965, allocations: 3.906 kB / 440.8 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.3966, allocations: 16.14 kB / 440.8 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.3966, allocations: 7.938 kB / 440.8 MB, free: 6.805 MB / 330.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 () * 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.932e-05/0.3967, allocations: 29.7 kB / 440.8 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.3968, allocations: 7.906 kB / 440.9 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.3969, allocations: 12.69 kB / 440.9 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3969, allocations: 0 / 440.9 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.3969, allocations: 11.06 kB / 440.9 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3969, allocations: 0 / 440.9 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004405/0.3974, allocations: 162.1 kB / 441 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3974, allocations: 0 / 441 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.3975, allocations: 15.98 kB / 441 MB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.3975, allocations: 4 kB / 441.1 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.3976, allocations: 0 / 441.1 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.3976, allocations: 3.938 kB / 441.1 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3976, allocations: 4 kB / 441.1 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000325/0.3979, allocations: 0.5033 MB / 441.6 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.688e-05/0.398, allocations: 86.8 kB / 441.6 MB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.775e-05/0.398, allocations: 7.984 kB / 441.7 MB, free: 5.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003442/0.3984, allocations: 15.23 kB / 441.7 MB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.3985, allocations: 3.938 kB / 441.7 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.3985, allocations: 8 kB / 441.7 MB, free: 5.844 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.758e-05/0.3986, allocations: 95.27 kB / 441.8 MB, free: 5.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004691/0.3991, allocations: 8 kB / 441.8 MB, free: 5.742 MB / 330.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 () * 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.0001291/0.3992, allocations: 95.16 kB / 441.9 MB, free: 5.637 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001473/0.3993, allocations: 31.94 kB / 441.9 MB, free: 5.605 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3994, allocations: 0 / 441.9 MB, free: 5.605 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.068e-05/0.3995, allocations: 27.92 kB / 441.9 MB, free: 5.578 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003859/0.3999, allocations: 4 kB / 441.9 MB, free: 5.578 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004581/0.4003, allocations: 157.9 kB / 442.1 MB, free: 5.383 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003669/0.4007, allocations: 0.6997 MB / 442.8 MB, free: 4.656 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4007, allocations: 3.938 kB / 442.8 MB, free: 4.652 MB / 330.7 MB Notification: Performance of Templates: time 0.002813/0.4035, allocations: 0.8602 MB / 443.7 MB, free: 3.805 MB / 330.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/jenkins1/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