Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) [: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.001/0.001, allocations: 185.4 kB / 8.138 MB, free: 2.176 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.157/1.157, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.000938/0.0009381, allocations: 92.33 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1027/0.1036, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.3121, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08202/0.3941, allocations: 78.29 MB / 465.3 MB, free: 8.496 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.3944, allocations: 71.91 kB / 465.4 MB, free: 8.426 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.02281/0.4172, allocations: 7.733 MB / 473.1 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.4173, allocations: 12.19 kB / 473.1 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000244/0.4175, allocations: 35.7 kB / 473.1 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.4177, allocations: 203.6 kB / 473.3 MB, free: 380 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.4177, allocations: 4 kB / 473.3 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.4178, allocations: 5.031 kB / 473.3 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000102/0.4179, allocations: 35.98 kB / 473.4 MB, free: 336 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.4181, allocations: 124.1 kB / 473.5 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.4181, allocations: 0 / 473.5 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.4181, allocations: 0 / 473.5 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.4181, allocations: 0 / 473.5 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006003/0.4187, allocations: 0.5186 MB / 474 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.419, allocations: 127.7 kB / 474.1 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.27e-05/0.419, allocations: 54.67 kB / 474.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.4191, allocations: 7.938 kB / 474.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.4192, allocations: 120.1 kB / 474.3 MB, free: 15.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.854e-06/0.4192, allocations: 0 / 474.3 MB, free: 15.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006431/0.4199, allocations: 172.1 kB / 474.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.42, allocations: 122.8 kB / 474.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.4201, allocations: 176.7 kB / 474.8 MB, free: 14.78 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.4202, allocations: 41.69 kB / 474.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.265e-05/0.4203, allocations: 108.5 kB / 474.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.808e-05/0.4203, allocations: 31.62 kB / 475 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.215e-05/0.4203, allocations: 4.031 kB / 475 MB, free: 14.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.4204, allocations: 334.8 kB / 475.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.4206, allocations: 79.78 kB / 475.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.4207, allocations: 111.4 kB / 475.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005836/0.4213, allocations: 127.9 kB / 475.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4213, allocations: 0 / 475.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007811/0.4221, allocations: 297.1 kB / 475.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.4221, allocations: 7.125 kB / 475.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.4222, allocations: 0 / 475.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.4222, allocations: 4 kB / 475.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.4223, allocations: 37.77 kB / 475.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.4224, allocations: 4 kB / 475.9 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.4225, allocations: 23.73 kB / 476 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.291e-05/0.4225, allocations: 8 kB / 476 MB, free: 13.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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 0.0001257/0.4226, allocations: 129.9 kB / 476.1 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.4227, allocations: 19.81 kB / 476.1 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.09e-05/0.4227, allocations: 17.34 kB / 476.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.4227, allocations: 0 / 476.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.4227, allocations: 7.906 kB / 476.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4228, allocations: 0 / 476.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002009/0.423, allocations: 186.1 kB / 476.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.768e-06/0.423, allocations: 7.984 kB / 476.3 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.689e-05/0.423, allocations: 8 kB / 476.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.4231, allocations: 4.562 kB / 476.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.4231, allocations: 7.984 kB / 476.4 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.4231, allocations: 0.8438 kB / 476.4 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4231, allocations: 4 kB / 476.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005647/0.4237, allocations: 230.8 kB / 476.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007808/0.4245, allocations: 0.7248 MB / 477.3 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.272e-05/0.4245, allocations: 96.89 kB / 477.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.248e-05/0.4246, allocations: 12 kB / 477.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.812e-05/0.4247, allocations: 11.98 kB / 477.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.938e-05/0.4247, allocations: 8.828 kB / 477.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.4248, allocations: 11.98 kB / 477.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.543e-05/0.4249, allocations: 136 kB / 477.6 MB, free: 11.81 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001096/0.426, allocations: 163.7 kB / 477.7 MB, free: 11.65 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.00123/0.4272, allocations: 427.5 kB / 478.2 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003861/0.4276, allocations: 223.3 kB / 478.4 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4276, allocations: 0 / 478.4 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.377e-05/0.4277, allocations: 55.92 kB / 478.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.4279, allocations: 8.188 kB / 478.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004446/0.4283, allocations: 189.4 kB / 478.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/0.4286, allocations: 0.7433 MB / 479.4 MB, free: 9.977 MB / 362.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4286, allocations: 0 / 479.4 MB, free: 9.977 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1)