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.0009996/0.0009996, allocations: 95.42 kB / 16.3 MB, free: 6.457 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.001092/0.001092, allocations: 184.3 kB / 17.19 MB, free: 6.34 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.493/1.493, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.000277, allocations: 11.03 kB / 300.8 MB, free: 6.371 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1162, allocations: 50.42 MB / 351.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01258/0.1288, allocations: 11.08 MB / 362.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.1394, allocations: 5.038 MB / 367.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00264/0.1421, allocations: 67.62 kB / 367.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002577/0.1447, allocations: 0.75 MB / 368.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004832/0.1495, allocations: 1.032 MB / 369.2 MB, free: 9.707 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.003098/0.1526, allocations: 0.6044 MB / 369.8 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006959/0.1596, allocations: 2.628 MB / 372.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003434/0.1631, allocations: 2.176 MB / 374.6 MB, free: 4.242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003592/0.1667, allocations: 1.269 MB / 375.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003611/0.1703, allocations: 1.63 MB / 377.5 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007669/0.1711, allocations: 200 kB / 377.7 MB, free: 1.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0017/0.1728, allocations: 419.6 kB / 378.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001201/0.174, allocations: 0.9346 MB / 379 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.1753, allocations: 0.7576 MB / 379.8 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007504/0.1829, allocations: 5.999 MB / 385.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1829, allocations: 0 / 385.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1829, allocations: 0 / 385.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002443/0.1832, allocations: 4 kB / 385.8 MB, free: 9.004 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.01198/0.1952, allocations: 3.67 MB / 389.5 MB, free: 5.266 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.1952, allocations: 12.03 kB / 389.5 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001887/0.1971, allocations: 446.8 kB / 389.9 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001807/0.1989, allocations: 455.1 kB / 390.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005443/0.2044, allocations: 2.367 MB / 392.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007779/0.2052, allocations: 427.2 kB / 393.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007427/0.206, allocations: 323.8 kB / 393.5 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009415/0.2154, allocations: 4.222 MB / 397.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-05/0.2155, allocations: 11.84 kB / 397.7 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003663/0.2159, allocations: 124 kB / 397.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000176/0.2161, allocations: 150.1 kB / 398 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008373/0.2245, allocations: 3.85 MB / 401.8 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03201/0.2565, allocations: 14.13 MB / 416 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004582/0.2611, allocations: 2.159 MB / 418.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004934/0.2617, allocations: 224.2 kB / 418.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003049/0.2648, allocations: 1.31 MB / 419.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=186): time 6.291e-06/0.2648, allocations: 0 / 419.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.3177/0.5825, allocations: 13.13 MB / 432.8 MB, free: 59.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006542/0.5891, allocations: 3.346 MB / 436.1 MB, free: 57.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006752/0.5959, allocations: 2.214 MB / 438.3 MB, free: 57.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007281/0.5967, allocations: 81.22 kB / 438.4 MB, free: 57.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00197/0.5987, allocations: 1.49 MB / 439.9 MB, free: 56.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001372/0.6001, allocations: 0.7839 MB / 440.7 MB, free: 55.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/0.6003, allocations: 55.03 kB / 440.7 MB, free: 55.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.6005, allocations: 413.2 kB / 441.1 MB, free: 55.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00369/0.6042, allocations: 1.294 MB / 442.4 MB, free: 55.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00398/0.6082, allocations: 1.935 MB / 444.4 MB, free: 53.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003928/0.6122, allocations: 1.547 MB / 445.9 MB, free: 53.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.252e-05/0.6122, allocations: 1.969 kB / 445.9 MB, free: 53.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.01199/0.6243, allocations: 3.888 MB / 449.8 MB, free: 51.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.937e-05/0.6244, allocations: 11.78 kB / 449.8 MB, free: 51.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.711e-05/0.6244, allocations: 23.41 kB / 449.8 MB, free: 51.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002204/0.6267, allocations: 0.4974 MB / 450.3 MB, free: 51.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004795/0.6315, allocations: 0.669 MB / 451 MB, free: 51.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008094/0.6396, allocations: 4.734 MB / 455.7 MB, free: 47.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00455/0.6442, allocations: 201.8 kB / 455.9 MB, free: 47.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005992/0.6448, allocations: 107.6 kB / 456.1 MB, free: 47.33 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.003734/0.6485, allocations: 1.091 MB / 457.1 MB, free: 46.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001294/0.6499, allocations: 256.8 kB / 457.4 MB, free: 46.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/0.6607, allocations: 3.673 MB / 461.1 MB, free: 42.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.289e-05/0.6609, allocations: 24 kB / 461.1 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.772e-05/0.6609, allocations: 0.75 kB / 461.1 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.878e-05/0.6609, allocations: 11.95 kB / 461.1 MB, free: 42.45 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.02821/0.6892, allocations: 9.369 MB / 470.5 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.86e-05/0.6892, allocations: 7.984 kB / 470.5 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002768/0.692, allocations: 431.6 kB / 470.9 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001591/0.6936, allocations: 0.6301 MB / 471.5 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002802/0.6939, allocations: 51.92 kB / 471.6 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007762/0.7017, allocations: 7.674 MB / 479.3 MB, free: 23.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003022/0.7048, allocations: 3.112 MB / 482.4 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00889/0.7137, allocations: 5.558 MB / 487.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001948/0.7157, allocations: 0.6227 MB / 488.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004605/0.7162, allocations: 55.98 kB / 488.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/0.7177, allocations: 159.8 kB / 488.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004538/0.7181, allocations: 201.6 kB / 489 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/0.7183, allocations: 64.73 kB / 489 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002161/0.7204, allocations: 1.5 MB / 490.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.7205, allocations: 0 / 490.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003104/0.7236, allocations: 0.7716 MB / 491.3 MB, free: 11.52 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.00917/0.7328, allocations: 6.697 MB / 498 MB, free: 4.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006474/0.7393, allocations: 3.712 MB / 0.4899 GB, free: 1.023 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/0.7394, allocations: 4 kB / 0.4899 GB, free: 1.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004364/0.7437, allocations: 2.281 MB / 0.4922 GB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003484/0.7472, allocations: 0.5703 MB / 0.4927 GB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02207/0.7693, allocations: 22.09 MB / 0.5143 GB, free: 7.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002727/0.7722, allocations: 2.447 MB / 0.5167 GB, free: 5.012 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002717/0.7749, allocations: 0.5953 MB / 0.5173 GB, free: 4.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0019/0.7768, allocations: 1.335 MB / 0.5186 GB, free: 3.078 MB / 382.1 MB Notification: Performance of SimCode: time 1.654e-06/0.7768, allocations: 4 kB / 0.5186 GB, free: 3.074 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1072/0.884, allocations: 65.09 MB / 0.5821 GB, free: 2.41 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002654/0.8843, allocations: 251 kB / 0.5824 GB, free: 2.074 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.873/4.757, allocations: 0 / 0.5824 GB, free: 2.074 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