Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.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.ActuatorWithNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ActuatorWithNoise",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.001591/0.001591, allocations: 184.7 kB / 8.134 MB, free: 2.68 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.24/1.24, allocations: 221.4 MB / 229.9 MB, free: 7.723 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009182/0.0009183, allocations: 97.94 kB / 280.8 MB, free: 5.145 MB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 0.1088/0.1097, allocations: 55.83 MB / 336.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.3331, allocations: 50.4 MB / 387 MB, free: 40.5 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3073/0.6404, allocations: 124.3 MB / 0.4993 GB, free: 104.1 MB / 382.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/0.6407, allocations: 86.28 kB / 0.4994 GB, free: 104.1 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 814 * Number of variables: 814 Notification: Performance of Generate backend data structure: time 0.1916/0.8323, allocations: 81.83 MB / 0.5793 GB, free: 37.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.8323, allocations: 12 kB / 0.5793 GB, free: 37.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00272/0.8351, allocations: 463 kB / 0.5797 GB, free: 37.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006724/0.8418, allocations: 2.577 MB / 0.5823 GB, free: 34.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005452/0.8424, allocations: 267.2 kB / 0.5825 GB, free: 34.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00132/0.8438, allocations: 191.9 kB / 0.5827 GB, free: 34.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007226/0.851, allocations: 3.332 MB / 0.5859 GB, free: 30.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007785/0.8588, allocations: 3.669 MB / 0.5895 GB, free: 26.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001273/0.8589, allocations: 15.84 kB / 0.5895 GB, free: 26.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005593/0.8595, allocations: 4 kB / 0.5896 GB, free: 26.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001236/0.8597, allocations: 138.1 kB / 0.5897 GB, free: 26.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02063/0.8803, allocations: 13.41 MB / 0.6028 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002039/0.8824, allocations: 1.333 MB / 0.6041 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/0.8841, allocations: 1.21 MB / 0.6053 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003315/0.8844, allocations: 228.1 kB / 0.6055 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001582/0.886, allocations: 1.213 MB / 0.6067 GB, free: 8.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=197): time 4.379e-06/0.8861, allocations: 0 / 0.6067 GB, free: 8.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=250): time 0.01844/0.9045, allocations: 9.489 MB / 0.6159 GB, free: 15.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.9046, allocations: 184.2 kB / 0.6161 GB, free: 15.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003793/0.9085, allocations: 1.658 MB / 0.6177 GB, free: 13.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003232/0.9088, allocations: 37.69 kB / 0.6178 GB, free: 13.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.9101, allocations: 1.16 MB / 0.6189 GB, free: 12.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009899/0.9111, allocations: 0.7967 MB / 0.6197 GB, free: 11.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/0.9114, allocations: 0 / 0.6197 GB, free: 11.51 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000265/0.9116, allocations: 419.6 kB / 0.6201 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002129/0.9138, allocations: 1.251 MB / 0.6213 GB, free: 9.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002876/0.9167, allocations: 1.86 MB / 0.6231 GB, free: 7.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002972/0.9196, allocations: 1.526 MB / 0.6246 GB, free: 6.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-05/0.9197, allocations: 11.91 kB / 0.6246 GB, free: 6.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=353) (initialization): time 0.007342/0.927, allocations: 3.673 MB / 0.6282 GB, free: 2.441 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.9271, allocations: 4 kB / 0.6282 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.154e-05/0.9271, allocations: 16 kB / 0.6282 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.9285, allocations: 491.4 kB / 0.6287 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003348/0.9319, allocations: 0.6826 MB / 0.6294 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005445/0.9374, allocations: 4.244 MB / 0.6335 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002934/0.9403, allocations: 123.8 kB / 0.6336 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000492/0.9409, allocations: 120 kB / 0.6337 GB, free: 12.53 MB / 414.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gearbox.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gearbox.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition1,$PRE.motor.uniformNoise.state[1],motor.uniformNoise.state[1],$PRE.motor.uniformNoise.state[2],motor.uniformNoise.state[2],$PRE.motor.uniformNoise.state[3],motor.uniformNoise.state[3],$PRE.motor.uniformNoise.state[4],motor.uniformNoise.state[4],$PRE.motor.uniformNoise.r,motor.uniformNoise.r,$PRE.motor.uniformNoise.r_raw,motor.uniformNoise.r_raw,gearbox.lossyGear.tau_aPos,gearbox.lossyGear.startForward,gearbox.lossyGear.startBackward,gearbox.lossyGear.locked,$PRE.gearbox.lossyGear.mode,gearbox.lossyGear.mode,gearbox.lossyGear.ideal,motor.uniformNoise.localSeed,motor.uniformNoise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (322): * Single equations (assignments): 316 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006697/0.9415, allocations: 199 kB / 0.6339 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006794/0.9422, allocations: 241 kB / 0.6342 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006993/0.9492, allocations: 3.412 MB / 0.6375 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.839e-05/0.9493, allocations: 24 kB / 0.6375 GB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/0.9493, allocations: 4 kB / 0.6375 GB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.059e-05/0.9494, allocations: 11.95 kB / 0.6375 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02195/0.9713, allocations: 8.947 MB / 0.6463 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.62e-05/0.9714, allocations: 7.906 kB / 0.6463 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002667/0.9741, allocations: 487.5 kB / 0.6467 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002135/0.9763, allocations: 0.6547 MB / 0.6474 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004737/0.9768, allocations: 19.97 kB / 0.6474 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009907/0.9867, allocations: 7.135 MB / 0.6544 GB, free: 6.879 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003857/0.9906, allocations: 3.092 MB / 0.6574 GB, free: 3.664 MB / 430.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1435/1.134, allocations: 5.34 MB / 0.6626 GB, free: 125 MB / 430.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008964/1.143, allocations: 7.626 MB / 0.67 GB, free: 124.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/1.145, allocations: 0.6294 MB / 0.6707 GB, free: 124.1 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005015/1.145, allocations: 19.45 kB / 0.6707 GB, free: 124.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/1.147, allocations: 107.1 kB / 0.6708 GB, free: 124.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003376/1.147, allocations: 159.9 kB / 0.6709 GB, free: 124.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001663/1.147, allocations: 72.44 kB / 0.671 GB, free: 124.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 0.00186/1.149, allocations: 1.233 MB / 0.6722 GB, free: 124 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003366/1.152, allocations: 0.7483 MB / 0.6729 GB, free: 124 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 ($STATESET1.x,controller.speed_PI.x,controller.positionToSpeed.x,controller.position_PI.x,gearbox.phi_rel,gearbox.w_rel,slewRateLimiter.y,rodMass.s,rodMass.v,elastoGap.s_rel,elastoGap.v_rel) * Number of discrete variables: 12 ($whenCondition1,motor.uniformNoise.state[1],motor.uniformNoise.state[2],motor.uniformNoise.state[3],motor.uniformNoise.state[4],motor.uniformNoise.r,motor.uniformNoise.r_raw,gearbox.lossyGear.tau_aPos,gearbox.lossyGear.startForward,gearbox.lossyGear.startBackward,gearbox.lossyGear.locked,gearbox.lossyGear.mode) * Number of discrete states: 5 (motor.uniformNoise.state[1],motor.uniformNoise.state[2],motor.uniformNoise.state[3],motor.uniformNoise.state[4],gearbox.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(3,100.0%) 11} * Non-linear torn systems: 1 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.001286/1.154, allocations: 0.5463 MB / 0.6735 GB, free: 123.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004841/1.159, allocations: 3.485 MB / 0.6769 GB, free: 123.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/1.159, allocations: 0 / 0.6769 GB, free: 123.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003021/1.162, allocations: 2.065 MB / 0.6789 GB, free: 123 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/1.165, allocations: 472.6 kB / 0.6793 GB, free: 123 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/1.177, allocations: 5.921 MB / 0.6851 GB, free: 121.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003237/1.18, allocations: 2.664 MB / 0.6877 GB, free: 121.1 MB / 430.1 MB Notification: Performance of SimCode: time 6.92e-07/1.18, allocations: 0 / 0.6877 GB, free: 121.1 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ActuatorWithNoise_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ActuatorWithNoise.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1)