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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.522/1.522, allocations: 221.5 MB / 230.3 MB, free: 7.586 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.0008205/0.0008204, allocations: 93.53 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.014e-05/2.018e-05, allocations: 4 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.09898, allocations: 50.42 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4613/0.5604, allocations: 124.3 MB / 0.4999 GB, free: 2.297 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.5607, allocations: 83.95 kB / 0.5 GB, free: 2.215 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4552/1.016, allocations: 78.72 MB / 0.5769 GB, free: 101.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.016, allocations: 0 / 0.5769 GB, free: 101.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003978/1.016, allocations: 81 kB / 0.5769 GB, free: 101.9 MB / 426.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.01308/1.03, allocations: 3.316 MB / 0.5802 GB, free: 100.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/1.03, allocations: 11.61 kB / 0.5802 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002957/1.033, allocations: 458 kB / 0.5806 GB, free: 100.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005877/1.038, allocations: 2.556 MB / 0.5831 GB, free: 99.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005152/1.039, allocations: 265.7 kB / 0.5834 GB, free: 99.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001051/1.04, allocations: 186 kB / 0.5835 GB, free: 99.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005882/1.046, allocations: 3.29 MB / 0.5868 GB, free: 99.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006345/1.052, allocations: 3.647 MB / 0.5903 GB, free: 97.56 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.583e-05/1.053, allocations: 7.594 kB / 0.5903 GB, free: 97.55 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002805/1.053, allocations: 2.75 kB / 0.5903 GB, free: 97.55 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001245/1.053, allocations: 143.9 kB / 0.5905 GB, free: 97.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02221/1.075, allocations: 13.42 MB / 0.6036 GB, free: 90.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002866/1.078, allocations: 2.041 MB / 0.6056 GB, free: 89.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001732/1.08, allocations: 1.163 MB / 0.6067 GB, free: 88.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003956/1.08, allocations: 235 kB / 0.6069 GB, free: 88.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001678/1.082, allocations: 1.198 MB / 0.6081 GB, free: 87.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=197): time 4.128e-06/1.082, allocations: 0 / 0.6081 GB, free: 87.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=250): time 0.01724/1.099, allocations: 9.491 MB / 0.6174 GB, free: 83.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/1.099, allocations: 189.8 kB / 0.6175 GB, free: 83.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/1.102, allocations: 1.641 MB / 0.6191 GB, free: 83.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002312/1.102, allocations: 39.48 kB / 0.6192 GB, free: 83.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001103/1.103, allocations: 1.477 MB / 0.6206 GB, free: 81.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000547/1.104, allocations: 0.8082 MB / 0.6214 GB, free: 81.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/1.104, allocations: 0 / 0.6214 GB, free: 81.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/1.104, allocations: 423.3 kB / 0.6218 GB, free: 80.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/1.106, allocations: 1.225 MB / 0.623 GB, free: 79.84 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001833/1.108, allocations: 1.846 MB / 0.6248 GB, free: 77.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001987/1.11, allocations: 1.503 MB / 0.6263 GB, free: 76.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/1.11, allocations: 4 kB / 0.6263 GB, free: 76.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=353) (initialization): time 0.005406/1.115, allocations: 3.612 MB / 0.6298 GB, free: 73.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/1.115, allocations: 12 kB / 0.6298 GB, free: 73.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.094e-05/1.115, allocations: 16 kB / 0.6298 GB, free: 73.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/1.116, allocations: 0.4984 MB / 0.6303 GB, free: 72.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002527/1.119, allocations: 0.69 MB / 0.631 GB, free: 72.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004385/1.123, allocations: 4.483 MB / 0.6354 GB, free: 67.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003346/1.127, allocations: 149.4 kB / 0.6355 GB, free: 67.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006523/1.127, allocations: 115.2 kB / 0.6356 GB, free: 67.56 MB / 426.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.0006297/1.128, allocations: 191.5 kB / 0.6358 GB, free: 67.38 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00526/1.133, allocations: 3.164 MB / 0.6389 GB, free: 64.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006329/1.134, allocations: 248.9 kB / 0.6391 GB, free: 64.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00559/1.139, allocations: 3.389 MB / 0.6425 GB, free: 61.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.818e-05/1.14, allocations: 24 kB / 0.6425 GB, free: 61.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/1.14, allocations: 10.02 kB / 0.6425 GB, free: 61.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.203e-05/1.14, allocations: 10.5 kB / 0.6425 GB, free: 61.35 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01515/1.155, allocations: 8.903 MB / 0.6512 GB, free: 53.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/1.155, allocations: 0 / 0.6512 GB, free: 53.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001894/1.157, allocations: 479.5 kB / 0.6516 GB, free: 52.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001455/1.158, allocations: 0.6468 MB / 0.6523 GB, free: 52.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001756/1.158, allocations: 23.97 kB / 0.6523 GB, free: 52.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006767/1.165, allocations: 7.511 MB / 0.6596 GB, free: 44.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003074/1.168, allocations: 3.236 MB / 0.6628 GB, free: 41.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007484/1.176, allocations: 5.258 MB / 0.6679 GB, free: 35.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001986/1.178, allocations: 0.6345 MB / 0.6685 GB, free: 35.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005411/1.178, allocations: 12 kB / 0.6686 GB, free: 35.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/1.18, allocations: 127.8 kB / 0.6687 GB, free: 34.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004643/1.18, allocations: 213.6 kB / 0.6689 GB, free: 34.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/1.181, allocations: 79.95 kB / 0.669 GB, free: 34.67 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002047/1.183, allocations: 1.214 MB / 0.6701 GB, free: 33.44 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.8e-07/1.183, allocations: 0 / 0.6701 GB, free: 33.44 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00367/1.186, allocations: 0.7382 MB / 0.6709 GB, free: 32.7 MB / 426.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.008206/1.195, allocations: 6.665 MB / 0.6774 GB, free: 26.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004848/1.199, allocations: 3.497 MB / 0.6808 GB, free: 22.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/1.199, allocations: 4 kB / 0.6808 GB, free: 22.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002856/1.202, allocations: 2.165 MB / 0.6829 GB, free: 20.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003414/1.206, allocations: 486 kB / 0.6834 GB, free: 19.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/1.219, allocations: 6.626 MB / 0.6898 GB, free: 13.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001774/1.221, allocations: 2.459 MB / 0.6922 GB, free: 10.63 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002546/1.224, allocations: 0.6176 MB / 0.6929 GB, free: 10.01 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00188/1.226, allocations: 1.347 MB / 0.6942 GB, free: 8.664 MB / 426.7 MB Notification: Performance of SimCode: time 1.232e-06/1.226, allocations: 0 / 0.6942 GB, free: 8.664 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4527/1.678, allocations: 63.31 MB / 0.756 GB, free: 97.31 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/1.679, allocations: 169.2 kB / 0.7561 GB, free: 97.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.216/5.895, allocations: 0 / 0.7561 GB, free: 97.12 MB / 442.7 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat does not exist to compare? outputFormat=mat