Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001044/0.001044, allocations: 179.4 kB / 8.476 MB, free: 1.855 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.187/1.187, allocations: 205.2 MB / 214.1 MB, free: 5.496 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008338/0.0008335, allocations: 90.25 kB / 262.1 MB, free: 5.551 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.724e-06/7.745e-06, allocations: 4 kB / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0718/0.07182, allocations: 47.58 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2537/0.3256, allocations: 75.27 MB / 437.8 MB, free: 10.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001764/0.3259, allocations: 66.89 kB / 437.9 MB, free: 10.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.003431/0.3293, allocations: 1.141 MB / 439 MB, free: 10.53 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.3293, allocations: 7.312 kB / 439 MB, free: 10.53 MB / 314.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.0003059/0.3296, allocations: 367 kB / 439.4 MB, free: 10.17 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.3297, allocations: 7.719 kB / 439.4 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.225e-05/0.3297, allocations: 7.75 kB / 439.4 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.3298, allocations: 179.5 kB / 439.6 MB, free: 9.961 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.3299, allocations: 7.844 kB / 439.6 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.3299, allocations: 3.844 kB / 439.6 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.952e-05/0.33, allocations: 26.72 kB / 439.6 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00015/0.3301, allocations: 90.97 kB / 439.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3301, allocations: 0 / 439.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.3302, allocations: 0 / 439.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.3302, allocations: 3.828 kB / 439.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004438/0.3306, allocations: 0.6137 MB / 440.3 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.168e-05/0.3307, allocations: 97.23 kB / 440.4 MB, free: 9.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.747e-05/0.3308, allocations: 53.11 kB / 440.5 MB, free: 9.133 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.3308, allocations: 0 / 440.5 MB, free: 9.133 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.409e-05/0.3308, allocations: 39.89 kB / 440.5 MB, free: 9.094 MB / 314.7 MB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.3308, allocations: 0.8438 kB / 440.5 MB, free: 9.094 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002553/0.3311, allocations: 68.64 kB / 440.6 MB, free: 9.047 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.3311, allocations: 161.1 kB / 440.7 MB, free: 8.859 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.212e-05/0.3312, allocations: 107.2 kB / 440.8 MB, free: 8.766 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.3312, allocations: 27.39 kB / 440.8 MB, free: 8.734 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.484e-05/0.3312, allocations: 92.91 kB / 440.9 MB, free: 8.648 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.3313, allocations: 20.67 kB / 441 MB, free: 8.637 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/0.3313, allocations: 160 / 441 MB, free: 8.637 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.699e-05/0.3313, allocations: 323.5 kB / 441.3 MB, free: 8.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.121e-05/0.3313, allocations: 10.84 kB / 441.3 MB, free: 8.316 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.899e-05/0.3314, allocations: 36.97 kB / 441.3 MB, free: 8.277 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.894e-05/0.3314, allocations: 20.36 kB / 441.3 MB, free: 8.27 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3314, allocations: 0 / 441.3 MB, free: 8.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.902e-05/0.3315, allocations: 67.11 kB / 441.4 MB, free: 8.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.3315, allocations: 5.078 kB / 441.4 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.3316, allocations: 3.969 kB / 441.4 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.3316, allocations: 0 / 441.4 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.3317, allocations: 16.94 kB / 441.4 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.3317, allocations: 4 kB / 441.4 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.073e-05/0.3318, allocations: 13.89 kB / 441.4 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-06/0.3318, allocations: 5.062 kB / 441.5 MB, free: 8.223 MB / 314.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 4.983e-05/0.3318, allocations: 116.1 kB / 441.6 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.3319, allocations: 3.938 kB / 441.6 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.964e-05/0.332, allocations: 17.64 kB / 441.6 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.332, allocations: 7.906 kB / 441.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.332, allocations: 0 / 441.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.332, allocations: 3.969 kB / 441.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.3323, allocations: 150.8 kB / 441.7 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3323, allocations: 0 / 441.7 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.009e-05/0.3324, allocations: 14.72 kB / 441.8 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3324, allocations: 3.875 kB / 441.8 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.3324, allocations: 0 / 441.8 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.3324, allocations: 5.5 kB / 441.8 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.3324, allocations: 11.81 kB / 441.8 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001664/0.3326, allocations: 0.5001 MB / 442.3 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.997e-05/0.3326, allocations: 82.33 kB / 442.4 MB, free: 7.332 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.3326, allocations: 3.938 kB / 442.4 MB, free: 7.332 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.3329, allocations: 10.8 kB / 442.4 MB, free: 7.332 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.3329, allocations: 14.81 kB / 442.4 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.3329, allocations: 4 kB / 442.4 MB, free: 7.324 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.724e-05/0.333, allocations: 88.8 kB / 442.5 MB, free: 7.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003582/0.3333, allocations: 11.75 kB / 442.5 MB, free: 7.25 MB / 314.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 9.291e-05/0.3334, allocations: 96.42 kB / 442.6 MB, free: 7.156 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.56e-05/0.3335, allocations: 30.91 kB / 442.6 MB, free: 7.152 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3335, allocations: 0 / 442.6 MB, free: 7.152 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.953e-05/0.3336, allocations: 20.92 kB / 442.6 MB, free: 7.152 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.3339, allocations: 9.391 kB / 442.6 MB, free: 7.148 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003047/0.3342, allocations: 126.6 kB / 442.8 MB, free: 7.027 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.3343, allocations: 0.7064 MB / 443.5 MB, free: 6.32 MB / 314.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3343, allocations: 0 / 443.5 MB, free: 6.32 MB / 314.7 MB Notification: Performance of Templates: time 0.002271/0.3366, allocations: 0.5665 MB / 444 MB, free: 6.266 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches