Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001282/0.001282, allocations: 198.7 kB / 8.535 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009548/0.0009548, allocations: 95 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1259/0.1269, allocations: 56.9 MB / 343.2 MB, free: 8.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.2384, allocations: 51.48 MB / 394.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3351/0.5736, allocations: 126.2 MB / 0.5087 GB, free: 15.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.5739, allocations: 78.34 kB / 0.5088 GB, free: 15.5 MB / 394.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.4706/1.045, allocations: 89.4 MB / 0.5961 GB, free: 58.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/1.045, allocations: 7.281 kB / 0.5961 GB, free: 58.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003987/1.049, allocations: 478.5 kB / 0.5966 GB, free: 57.88 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009571/1.058, allocations: 2.604 MB / 0.5991 GB, free: 57.35 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006872/1.059, allocations: 258 kB / 0.5993 GB, free: 57.24 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001683/1.061, allocations: 192.9 kB / 0.5995 GB, free: 57.24 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0107/1.071, allocations: 3.349 MB / 0.6028 GB, free: 57.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01267/1.084, allocations: 3.698 MB / 0.6064 GB, free: 56.79 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002918/1.084, allocations: 19.75 kB / 0.6064 GB, free: 56.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001219/1.086, allocations: 3.844 kB / 0.6064 GB, free: 56.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001584/1.086, allocations: 141.2 kB / 0.6066 GB, free: 56.78 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03504/1.121, allocations: 13.51 MB / 0.6198 GB, free: 53.78 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003486/1.124, allocations: 1.344 MB / 0.6211 GB, free: 53.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002745/1.127, allocations: 1.217 MB / 0.6223 GB, free: 53.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005106/1.128, allocations: 234.6 kB / 0.6225 GB, free: 53.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002816/1.131, allocations: 1.219 MB / 0.6237 GB, free: 53.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=197): time 6.512e-06/1.131, allocations: 0 / 0.6237 GB, free: 53.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=250): time 0.02337/1.154, allocations: 9.5 MB / 0.6329 GB, free: 50.61 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.161e-05/1.154, allocations: 186.4 kB / 0.6331 GB, free: 50.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00453/1.159, allocations: 1.699 MB / 0.6348 GB, free: 49.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006147/1.159, allocations: 40.2 kB / 0.6348 GB, free: 49.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001466/1.161, allocations: 1.154 MB / 0.636 GB, free: 48.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001291/1.162, allocations: 0.8049 MB / 0.6367 GB, free: 48.19 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001925/1.162, allocations: 1.781 kB / 0.6367 GB, free: 48.19 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/1.163, allocations: 413.4 kB / 0.6371 GB, free: 47.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00225/1.165, allocations: 1.26 MB / 0.6384 GB, free: 47.31 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002812/1.168, allocations: 1.873 MB / 0.6402 GB, free: 46.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003601/1.171, allocations: 1.528 MB / 0.6417 GB, free: 45.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.645e-05/1.171, allocations: 7.031 kB / 0.6417 GB, free: 45.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=353) (initialization): time 0.0108/1.182, allocations: 3.686 MB / 0.6453 GB, free: 43.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/1.182, allocations: 6.562 kB / 0.6453 GB, free: 43.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.757e-05/1.182, allocations: 21.31 kB / 0.6453 GB, free: 43.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/1.184, allocations: 0.5096 MB / 0.6458 GB, free: 43.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003895/1.188, allocations: 0.6903 MB / 0.6465 GB, free: 43.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005851/1.194, allocations: 4.26 MB / 0.6507 GB, free: 40.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003783/1.198, allocations: 129.8 kB / 0.6508 GB, free: 40.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008844/1.199, allocations: 115.5 kB / 0.6509 GB, free: 40.48 MB / 442.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.0009403/1.2, allocations: 191.3 kB / 0.6511 GB, free: 40.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001069/1.201, allocations: 247 kB / 0.6513 GB, free: 40.18 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007755/1.208, allocations: 3.435 MB / 0.6547 GB, free: 38.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.574e-05/1.208, allocations: 24.47 kB / 0.6547 GB, free: 38.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.84e-05/1.209, allocations: 2.938 kB / 0.6547 GB, free: 38.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.092e-05/1.209, allocations: 15.27 kB / 0.6547 GB, free: 38.84 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01827/1.227, allocations: 9.03 MB / 0.6635 GB, free: 34.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/1.227, allocations: 0 / 0.6635 GB, free: 34.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002353/1.229, allocations: 487.3 kB / 0.664 GB, free: 34.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001833/1.231, allocations: 0.6688 MB / 0.6646 GB, free: 34.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003451/1.231, allocations: 24.92 kB / 0.6647 GB, free: 34.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007606/1.239, allocations: 7.153 MB / 0.6716 GB, free: 29.49 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003279/1.242, allocations: 3.09 MB / 0.6747 GB, free: 27.46 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008353/1.251, allocations: 5.387 MB / 0.6799 GB, free: 25 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01094/1.262, allocations: 7.676 MB / 0.6874 GB, free: 21.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001875/1.264, allocations: 0.6496 MB / 0.6881 GB, free: 20.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001193/1.265, allocations: 14.56 kB / 0.6881 GB, free: 20.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002507/1.267, allocations: 121.6 kB / 0.6882 GB, free: 20.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004978/1.268, allocations: 157.2 kB / 0.6883 GB, free: 20.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002213/1.268, allocations: 71.19 kB / 0.6884 GB, free: 20.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002483/1.271, allocations: 1.249 MB / 0.6896 GB, free: 20.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004643/1.275, allocations: 0.7738 MB / 0.6904 GB, free: 20.2 MB / 442.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.001809/1.277, allocations: 0.6885 MB / 0.691 GB, free: 19.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006676/1.284, allocations: 3.499 MB / 0.6945 GB, free: 18.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.284, allocations: 3.281 kB / 0.6945 GB, free: 18.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003969/1.288, allocations: 2.083 MB / 0.6965 GB, free: 17.33 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003634/1.292, allocations: 479.4 kB / 0.697 GB, free: 17.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01738/1.309, allocations: 5.96 MB / 0.7028 GB, free: 14.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004029/1.313, allocations: 2.671 MB / 0.7054 GB, free: 12.38 MB / 442.7 MB Notification: Performance of SimCode: time 1.222e-06/1.313, allocations: 0 / 0.7054 GB, free: 12.38 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_ActuatorWithNoise_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Blocks_Examples_Noise_ActuatorWithNoise.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat does not exist to compare? outputFormat=mat