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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 88.06 kB / 16.31 MB, free: 5.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 180.3 kB / 17.21 MB, free: 5.57 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.3 MB / 241.2 MB, free: 5.273 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000271/0.0002711, allocations: 6.562 kB / 300.9 MB, free: 5.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1126, allocations: 50.43 MB / 351.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01505/0.1277, allocations: 12.01 MB / 363.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01225/0.14, allocations: 4.916 MB / 368.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003405/0.1435, allocations: 71.69 kB / 368.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002966/0.1465, allocations: 0.7297 MB / 369.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004688/0.1512, allocations: 0.9321 MB / 370 MB, free: 8.637 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.00265/0.1539, allocations: 0.6006 MB / 370.6 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006988/0.1609, allocations: 4.079 MB / 374.7 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003458/0.1644, allocations: 2.169 MB / 376.9 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002702/0.1671, allocations: 1.354 MB / 378.2 MB, free: 372 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003252/0.1704, allocations: 1.798 MB / 380 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00103/0.1715, allocations: 204 kB / 380.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001881/0.1734, allocations: 447.6 kB / 380.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.1747, allocations: 0.9695 MB / 381.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001462/0.1761, allocations: 0.7576 MB / 382.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007607/0.1837, allocations: 6.077 MB / 388.4 MB, free: 6.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1838, allocations: 4 kB / 388.4 MB, free: 6.086 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.1838, allocations: 0 / 388.4 MB, free: 6.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002342/0.184, allocations: 0 / 388.4 MB, free: 6.086 MB / 318.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.01009/0.1941, allocations: 3.682 MB / 392.1 MB, free: 2.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1942, allocations: 12.03 kB / 392.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001436/0.1957, allocations: 438.8 kB / 392.6 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001657/0.1973, allocations: 451.1 kB / 393 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004615/0.202, allocations: 2.336 MB / 395.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007574/0.2028, allocations: 427.1 kB / 395.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008034/0.2036, allocations: 311.8 kB / 396.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009835/0.2134, allocations: 4.254 MB / 400.3 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.814e-05/0.2136, allocations: 7.906 kB / 400.3 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003118/0.2139, allocations: 132 kB / 400.5 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000166/0.2141, allocations: 146.1 kB / 400.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007995/0.2221, allocations: 3.854 MB / 404.5 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02715/0.2492, allocations: 14.22 MB / 418.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003502/0.2528, allocations: 2.163 MB / 420.8 MB, free: 5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002164/0.255, allocations: 1.31 MB / 422.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003159/0.2553, allocations: 216.2 kB / 422.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00218/0.2575, allocations: 1.322 MB / 423.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=186): time 3.396e-06/0.2575, allocations: 0 / 423.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.2586/0.5161, allocations: 13.02 MB / 436.7 MB, free: 58.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004032/0.5202, allocations: 3.254 MB / 440 MB, free: 57.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003644/0.5239, allocations: 2.271 MB / 442.2 MB, free: 56.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006275/0.5245, allocations: 77.52 kB / 442.3 MB, free: 56.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/0.526, allocations: 1.495 MB / 443.8 MB, free: 55.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001019/0.527, allocations: 0.7896 MB / 444.6 MB, free: 54.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/0.5272, allocations: 51.55 kB / 444.6 MB, free: 54.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000225/0.5274, allocations: 411.4 kB / 445 MB, free: 54.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002412/0.5298, allocations: 1.289 MB / 446.3 MB, free: 53.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002347/0.5322, allocations: 1.944 MB / 448.3 MB, free: 52.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002413/0.5346, allocations: 1.545 MB / 449.8 MB, free: 51.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.5347, allocations: 7.812 kB / 449.8 MB, free: 51.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.006535/0.5412, allocations: 3.88 MB / 453.7 MB, free: 49.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.85e-05/0.5413, allocations: 12.34 kB / 453.7 MB, free: 49.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.955e-05/0.5413, allocations: 20 kB / 453.7 MB, free: 49.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.5425, allocations: 0.5033 MB / 454.2 MB, free: 49.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002381/0.5449, allocations: 0.6591 MB / 454.9 MB, free: 48.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004906/0.5499, allocations: 4.663 MB / 459.6 MB, free: 43.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003617/0.5535, allocations: 203.8 kB / 459.8 MB, free: 43.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004399/0.554, allocations: 108 kB / 459.9 MB, free: 43.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 303 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * 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.003348/0.5573, allocations: 1.079 MB / 460.9 MB, free: 42.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001165/0.5585, allocations: 257.5 kB / 461.2 MB, free: 42.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006427/0.5649, allocations: 3.659 MB / 464.9 MB, free: 38.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.2e-05/0.565, allocations: 24 kB / 464.9 MB, free: 38.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.565, allocations: 4 kB / 464.9 MB, free: 38.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.037e-05/0.5651, allocations: 15.95 kB / 464.9 MB, free: 38.4 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.01486/0.5799, allocations: 9.414 MB / 474.3 MB, free: 28.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.58, allocations: 0 / 474.3 MB, free: 28.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/0.5816, allocations: 423.4 kB / 474.7 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001432/0.583, allocations: 0.6423 MB / 475.4 MB, free: 27.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001717/0.5832, allocations: 52.84 kB / 475.4 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007326/0.5905, allocations: 7.481 MB / 482.9 MB, free: 19.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002809/0.5934, allocations: 3.014 MB / 485.9 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008388/0.6018, allocations: 5.424 MB / 491.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/0.6033, allocations: 0.6344 MB / 492 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003926/0.6037, allocations: 51.95 kB / 492 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.605, allocations: 163.8 kB / 492.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003937/0.6054, allocations: 201.6 kB / 492.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.6055, allocations: 67.97 kB / 492.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002154/0.6077, allocations: 1.547 MB / 494 MB, free: 8.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6077, allocations: 0 / 494 MB, free: 8.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002499/0.6102, allocations: 0.7773 MB / 494.8 MB, free: 7.832 MB / 350.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 191 * 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%) 8} * Non-linear torn systems: 1 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.008104/0.6183, allocations: 6.204 MB / 0.4892 GB, free: 1.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00619/0.6245, allocations: 3.7 MB / 0.4928 GB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.6246, allocations: 0 / 0.4928 GB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003736/0.6283, allocations: 2.271 MB / 0.4951 GB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003094/0.6314, allocations: 0.6175 MB / 0.4957 GB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0511/0.6826, allocations: 22.64 MB / 0.5178 GB, free: 2.875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004015/0.6866, allocations: 2.385 MB / 0.5201 GB, free: 468 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003226/0.6899, allocations: 0.5914 MB / 0.5207 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0027/0.6926, allocations: 1.339 MB / 0.522 GB, free: 14.52 MB / 398.1 MB Notification: Performance of SimCode: time 1.462e-06/0.6926, allocations: 0 / 0.522 GB, free: 14.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3419/1.035, allocations: 66.96 MB / 0.5874 GB, free: 133.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004393/1.035, allocations: 259.7 kB / 0.5876 GB, free: 133.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.857/4.892, allocations: 2.922 kB / 0.5876 GB, free: 133.1 MB / 446.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) 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