Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 185.3 kB / 8.138 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.204/1.204, allocations: 221.4 MB / 229.9 MB, free: 3.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008825/0.0008825, allocations: 95.95 kB / 280.8 MB, free: 1.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.863e-06/7.214e-06, allocations: 0 / 336.5 MB, free: 9.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.209, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08203/0.2911, allocations: 76.17 MB / 463.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001436/0.2913, allocations: 71.16 kB / 463.1 MB, free: 10.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.003689/0.295, allocations: 1.191 MB / 464.3 MB, free: 9.426 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.295, allocations: 4 kB / 464.3 MB, free: 9.422 MB / 346.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.000362/0.2954, allocations: 362.3 kB / 464.7 MB, free: 9.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.2954, allocations: 8.031 kB / 464.7 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.969e-05/0.2955, allocations: 14.34 kB / 464.7 MB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.2956, allocations: 182.8 kB / 464.9 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.2956, allocations: 0 / 464.9 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.2956, allocations: 7.938 kB / 464.9 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.776e-05/0.2957, allocations: 28 kB / 464.9 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.2959, allocations: 85.97 kB / 465 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.2959, allocations: 0 / 465 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.2959, allocations: 3.938 kB / 465 MB, free: 8.641 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2959, allocations: 4 kB / 465 MB, free: 8.637 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005795/0.2965, allocations: 0.6179 MB / 465.6 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.2966, allocations: 97.02 kB / 465.7 MB, free: 7.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.566e-05/0.2967, allocations: 36.92 kB / 465.8 MB, free: 7.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.2967, allocations: 8 kB / 465.8 MB, free: 7.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.2968, allocations: 42.48 kB / 465.8 MB, free: 7.719 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.2968, allocations: 0 / 465.8 MB, free: 7.719 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002735/0.2971, allocations: 69.53 kB / 465.9 MB, free: 7.645 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/0.2971, allocations: 158.4 kB / 466 MB, free: 7.453 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.053e-05/0.2972, allocations: 118 kB / 466.1 MB, free: 7.332 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.2972, allocations: 25.7 kB / 466.2 MB, free: 7.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.104e-05/0.2973, allocations: 92.09 kB / 466.3 MB, free: 7.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.2973, allocations: 19.66 kB / 466.3 MB, free: 7.188 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.2973, allocations: 0 / 466.3 MB, free: 7.188 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.2975, allocations: 322.8 kB / 466.6 MB, free: 6.863 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.536e-05/0.2975, allocations: 12 kB / 466.6 MB, free: 6.852 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.797e-05/0.2975, allocations: 37.67 kB / 466.6 MB, free: 6.801 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.216e-05/0.2976, allocations: 15.98 kB / 466.7 MB, free: 6.785 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2976, allocations: 0.5625 kB / 466.7 MB, free: 6.785 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001159/0.2977, allocations: 77.47 kB / 466.7 MB, free: 6.703 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/0.2977, allocations: 4 kB / 466.7 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2977, allocations: 0 / 466.7 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.2977, allocations: 4 kB / 466.7 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.2979, allocations: 15.98 kB / 466.8 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.2979, allocations: 0.5625 kB / 466.8 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.64e-05/0.298, allocations: 12.16 kB / 466.8 MB, free: 6.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.298, allocations: 4 kB / 466.8 MB, free: 6.664 MB / 346.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 6.312e-05/0.298, allocations: 104.9 kB / 466.9 MB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.2982, allocations: 7.984 kB / 466.9 MB, free: 6.547 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.729e-05/0.2982, allocations: 11.62 kB / 466.9 MB, free: 6.535 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.2982, allocations: 4.844 kB / 466.9 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.2982, allocations: 4 kB / 466.9 MB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.2982, allocations: 4 kB / 466.9 MB, free: 6.523 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003232/0.2985, allocations: 163.1 kB / 467.1 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2986, allocations: 0 / 467.1 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.608e-05/0.2986, allocations: 12 kB / 467.1 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.2987, allocations: 7.984 kB / 467.1 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.2987, allocations: 0 / 467.1 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.2987, allocations: 4 kB / 467.1 MB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.2987, allocations: 4.656 kB / 467.1 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002653/0.299, allocations: 0.5 MB / 467.6 MB, free: 5.758 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.461e-05/0.299, allocations: 85.02 kB / 467.7 MB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.299, allocations: 4.688 kB / 467.7 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.2993, allocations: 11.98 kB / 467.7 MB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.997e-05/0.2993, allocations: 15.89 kB / 467.7 MB, free: 5.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.2994, allocations: 0 / 467.7 MB, free: 5.625 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.203e-05/0.2994, allocations: 92.75 kB / 467.8 MB, free: 5.535 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000373/0.2998, allocations: 15.94 kB / 467.8 MB, free: 5.52 MB / 346.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.0001076/0.2999, allocations: 99.19 kB / 467.9 MB, free: 5.414 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.789e-05/0.3, allocations: 31.92 kB / 467.9 MB, free: 5.383 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3, allocations: 4 kB / 467.9 MB, free: 5.379 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.376e-05/0.3001, allocations: 19.94 kB / 468 MB, free: 5.359 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.3003, allocations: 5.312 kB / 468 MB, free: 5.355 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003039/0.3007, allocations: 123.7 kB / 468.1 MB, free: 5.195 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002952/0.301, allocations: 0.7075 MB / 468.8 MB, free: 4.461 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.301, allocations: 0 / 468.8 MB, free: 4.461 MB / 346.7 MB Notification: Performance of Templates: time 0.002137/0.3031, allocations: 0.5683 MB / 469.4 MB, free: 3.922 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches