Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.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: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_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 3.2.3+maint.om/package.mo): time 0.001271/0.001271, allocations: 168.9 kB / 8.469 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.169/1.169, allocations: 205.2 MB / 214.1 MB, free: 5.148 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.0008892/0.0008892, allocations: 91.27 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1764/0.1773, allocations: 52.96 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07278/0.2501, allocations: 47.58 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2676/0.5177, allocations: 123.8 MB / 486.4 MB, free: 1.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.5179, allocations: 80.52 kB / 486.5 MB, free: 1.301 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: 814 * Number of variables: 814 Notification: Performance of Generate backend data structure: time 0.2043/0.7222, allocations: 81.38 MB / 0.5546 GB, free: 6.934 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.7223, allocations: 12 kB / 0.5546 GB, free: 6.922 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002294/0.7246, allocations: 463 kB / 0.555 GB, free: 6.465 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005727/0.7303, allocations: 2.573 MB / 0.5575 GB, free: 3.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004397/0.7308, allocations: 263.2 kB / 0.5578 GB, free: 3.562 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007408/0.7315, allocations: 191.9 kB / 0.558 GB, free: 3.375 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005789/0.7373, allocations: 3.336 MB / 0.5612 GB, free: 32 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.178/0.9154, allocations: 3.681 MB / 0.5648 GB, free: 43.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.125e-05/0.9155, allocations: 13.62 kB / 0.5648 GB, free: 43.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002578/0.9158, allocations: 3.531 kB / 0.5648 GB, free: 43.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.837e-05/0.9159, allocations: 140.5 kB / 0.565 GB, free: 43.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0174/0.9333, allocations: 13.42 MB / 0.5781 GB, free: 41.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.9352, allocations: 1.326 MB / 0.5794 GB, free: 41.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001559/0.9368, allocations: 1.215 MB / 0.5806 GB, free: 41.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000339/0.9371, allocations: 230.7 kB / 0.5808 GB, free: 41.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001461/0.9386, allocations: 1.21 MB / 0.582 GB, free: 40.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=197): time 3.036e-06/0.9386, allocations: 7.203 kB / 0.582 GB, free: 40.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=250): time 0.01752/0.9561, allocations: 9.479 MB / 0.5912 GB, free: 39.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/0.9563, allocations: 183.5 kB / 0.5914 GB, free: 39.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002455/0.9587, allocations: 1.654 MB / 0.593 GB, free: 39.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001893/0.9589, allocations: 42.08 kB / 0.5931 GB, free: 39.22 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009495/0.9599, allocations: 1.149 MB / 0.5942 GB, free: 38.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005678/0.9605, allocations: 0.8059 MB / 0.595 GB, free: 38.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.9606, allocations: 3.172 kB / 0.595 GB, free: 38.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.9608, allocations: 417.9 kB / 0.5954 GB, free: 37.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00159/0.9624, allocations: 1.251 MB / 0.5966 GB, free: 37.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001822/0.9642, allocations: 1.869 MB / 0.5984 GB, free: 37.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00207/0.9663, allocations: 1.531 MB / 0.5999 GB, free: 37.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.9663, allocations: 7.531 kB / 0.5999 GB, free: 37.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=353) (initialization): time 0.005556/0.9718, allocations: 3.675 MB / 0.6035 GB, free: 36.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.9719, allocations: 3.75 kB / 0.6035 GB, free: 36.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.16e-05/0.9719, allocations: 17.94 kB / 0.6035 GB, free: 36.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.9731, allocations: 496 kB / 0.604 GB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002673/0.9757, allocations: 0.6882 MB / 0.6047 GB, free: 36.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004108/0.9799, allocations: 4.241 MB / 0.6088 GB, free: 33.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002422/0.9823, allocations: 125 kB / 0.6089 GB, free: 33.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002885/0.9826, allocations: 117.5 kB / 0.609 GB, free: 33.49 MB / 410.7 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.0005137/0.9831, allocations: 186.1 kB / 0.6092 GB, free: 33.37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004266/0.9836, allocations: 247.6 kB / 0.6095 GB, free: 33.24 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005441/0.989, allocations: 3.424 MB / 0.6128 GB, free: 31.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-05/0.9891, allocations: 28.56 kB / 0.6128 GB, free: 31.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.9891, allocations: 3.438 kB / 0.6128 GB, free: 31.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.098e-05/0.9891, allocations: 13.97 kB / 0.6128 GB, free: 31.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0158/1.005, allocations: 8.956 MB / 0.6216 GB, free: 28.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/1.005, allocations: 3.938 kB / 0.6216 GB, free: 28.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002114/1.007, allocations: 479.9 kB / 0.6221 GB, free: 28.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001585/1.009, allocations: 0.6568 MB / 0.6227 GB, free: 27.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000193/1.009, allocations: 19.58 kB / 0.6227 GB, free: 27.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006989/1.016, allocations: 7.13 MB / 0.6297 GB, free: 22.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002852/1.019, allocations: 3.085 MB / 0.6327 GB, free: 20.73 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006762/1.026, allocations: 5.383 MB / 0.6379 GB, free: 18.31 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008897/1.034, allocations: 7.656 MB / 0.6454 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/1.036, allocations: 0.6272 MB / 0.646 GB, free: 14.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007118/1.037, allocations: 11.66 kB / 0.646 GB, free: 14.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001804/1.039, allocations: 119.5 kB / 0.6462 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003209/1.039, allocations: 156.3 kB / 0.6463 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001698/1.039, allocations: 74.47 kB / 0.6464 GB, free: 14.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002128/1.041, allocations: 1.224 MB / 0.6476 GB, free: 13.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003726/1.045, allocations: 0.7585 MB / 0.6483 GB, free: 13.62 MB / 410.7 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.001136/1.046, allocations: 0.5469 MB / 0.6489 GB, free: 13.47 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004872/1.051, allocations: 3.485 MB / 0.6523 GB, free: 11.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/1.051, allocations: 3.906 kB / 0.6523 GB, free: 11.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002864/1.054, allocations: 2.057 MB / 0.6543 GB, free: 10.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002911/1.057, allocations: 475.4 kB / 0.6547 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01376/1.071, allocations: 5.929 MB / 0.6605 GB, free: 8.371 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00319/1.074, allocations: 2.659 MB / 0.6631 GB, free: 7.301 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/1.074, allocations: 1.656 kB / 0.6631 GB, free: 7.301 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-05 Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe 2>&1)