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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008346/0.0008346, allocations: 100.7 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009689/0.0009687, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002985/0.0002987, allocations: 8 kB / 306.8 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1177, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01426/0.132, allocations: 12.14 MB / 370.4 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.268/0.4002, allocations: 5.047 MB / 375.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003689/0.4039, allocations: 73.94 kB / 375.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003364/0.4073, allocations: 0.7539 MB / 376.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005265/0.4126, allocations: 0.9629 MB / 377.3 MB, free: 9.164 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.002646/0.4152, allocations: 0.5868 MB / 377.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006772/0.422, allocations: 4.118 MB / 382 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003721/0.4257, allocations: 2.175 MB / 384.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003624/0.4294, allocations: 1.372 MB / 385.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004479/0.4339, allocations: 1.827 MB / 387.4 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001076/0.435, allocations: 210.2 kB / 387.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002107/0.4371, allocations: 457.8 kB / 388 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001209/0.4383, allocations: 0.9777 MB / 389 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001407/0.4397, allocations: 0.7604 MB / 389.7 MB, free: 6.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006798/0.4465, allocations: 6.15 MB / 395.9 MB, free: 2.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.4466, allocations: 0 / 395.9 MB, free: 2.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.4466, allocations: 0 / 395.9 MB, free: 2.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002661/0.4469, allocations: 0 / 395.9 MB, free: 2.254 MB / 302.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.01032/0.4572, allocations: 3.72 MB / 399.6 MB, free: 15.83 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.4572, allocations: 11.19 kB / 399.6 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001253/0.4585, allocations: 445.7 kB / 400.1 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00173/0.4602, allocations: 461.1 kB / 400.5 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005269/0.4655, allocations: 2.334 MB / 402.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007887/0.4663, allocations: 425.3 kB / 403.3 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008459/0.4672, allocations: 328.1 kB / 403.6 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009748/0.477, allocations: 4.256 MB / 407.8 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.962e-05/0.4771, allocations: 11.91 kB / 407.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003072/0.4774, allocations: 124 kB / 408 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001618/0.4776, allocations: 146.1 kB / 408.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008051/0.4856, allocations: 3.861 MB / 412 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02452/0.5102, allocations: 14.25 MB / 426.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003469/0.5137, allocations: 2.177 MB / 428.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002287/0.516, allocations: 1.306 MB / 429.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003477/0.5164, allocations: 215.5 kB / 429.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002345/0.5187, allocations: 1.333 MB / 431.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=186): time 3.807e-06/0.5187, allocations: 0 / 431.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=234): time 0.0308/0.5495, allocations: 13.01 MB / 444.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003963/0.5535, allocations: 3.255 MB / 447.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003989/0.5576, allocations: 2.299 MB / 449.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004988/0.5581, allocations: 73.7 kB / 449.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001433/0.5595, allocations: 1.503 MB / 451.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000932/0.5605, allocations: 0.7827 MB / 452.2 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.5606, allocations: 58.17 kB / 452.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001949/0.5608, allocations: 407.4 kB / 452.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00234/0.5632, allocations: 1.286 MB / 453.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002619/0.5658, allocations: 1.937 MB / 455.9 MB, free: 8.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002435/0.5683, allocations: 1.543 MB / 457.4 MB, free: 6.844 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/0.5683, allocations: 8.656 kB / 457.4 MB, free: 6.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.00689/0.5752, allocations: 3.881 MB / 461.3 MB, free: 2.891 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.5753, allocations: 12 kB / 461.3 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.741e-05/0.5753, allocations: 20 kB / 461.3 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.5767, allocations: 0.5435 MB / 461.9 MB, free: 2.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002522/0.5792, allocations: 0.6669 MB / 462.5 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005721/0.5849, allocations: 4.672 MB / 467.2 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003159/0.5881, allocations: 211.6 kB / 467.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004516/0.5886, allocations: 108 kB / 467.5 MB, free: 12.39 MB / 382.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.003107/0.5917, allocations: 1.086 MB / 468.6 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001095/0.5928, allocations: 256.8 kB / 468.9 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007686/0.6005, allocations: 3.662 MB / 472.5 MB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.548e-05/0.6006, allocations: 28.03 kB / 472.5 MB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.6006, allocations: 0 / 472.5 MB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-05/0.6006, allocations: 15.91 kB / 472.6 MB, free: 7.301 MB / 382.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.01797/0.6186, allocations: 9.452 MB / 482 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/0.6187, allocations: 0 / 482 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001889/0.6205, allocations: 439.5 kB / 482.4 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001748/0.6223, allocations: 0.6727 MB / 483.1 MB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002218/0.6225, allocations: 47.97 kB / 483.2 MB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00871/0.6313, allocations: 7.497 MB / 490.7 MB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003416/0.6347, allocations: 3.03 MB / 493.7 MB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009783/0.6445, allocations: 5.417 MB / 499.1 MB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002002/0.6466, allocations: 0.6577 MB / 499.8 MB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007947/0.6474, allocations: 48 kB / 499.8 MB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001621/0.649, allocations: 164.3 kB / 500 MB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004629/0.6495, allocations: 201.6 kB / 0.4884 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001594/0.6497, allocations: 67.97 kB / 0.4885 GB, free: 10.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00264/0.6523, allocations: 1.555 MB / 0.49 GB, free: 9.359 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6523, allocations: 0 / 0.49 GB, free: 9.359 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003563/0.6559, allocations: 0.7773 MB / 0.4908 GB, free: 8.582 MB / 414.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.01256/0.6685, allocations: 6.41 MB / 0.497 GB, free: 2.266 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008048/0.6766, allocations: 3.699 MB / 0.5007 GB, free: 14.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.6766, allocations: 0 / 0.5007 GB, free: 14.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00481/0.6815, allocations: 2.285 MB / 0.5029 GB, free: 12.15 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004538/0.686, allocations: 0.6258 MB / 0.5035 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06472/0.7508, allocations: 22.62 MB / 0.5256 GB, free: 3.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00333/0.7542, allocations: 2.389 MB / 0.5279 GB, free: 1.078 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003101/0.7573, allocations: 0.6069 MB / 0.5285 GB, free: 476 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2244/0.9817, allocations: 1.347 MB / 0.5298 GB, free: 144.6 MB / 446.1 MB Notification: Performance of SimCode: time 2.605e-06/0.9817, allocations: 0 / 0.5298 GB, free: 144.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1115/1.093, allocations: 67.77 MB / 0.596 GB, free: 96.96 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001729/1.094, allocations: 252.1 kB / 0.5963 GB, free: 96.63 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.847/4.94, allocations: 3.938 kB / 0.5963 GB, free: 96.62 MB / 446.1 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