Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.NoiseExamples.ActuatorWithNoise,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_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.0009637/0.0009637, allocations: 97.27 kB / 16.93 MB, free: 5.984 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.0009666/0.0009668, allocations: 175.8 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005057/0.0005058, allocations: 8 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09736/0.09788, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise): time 0.01176/0.1097, allocations: 11.03 MB / 339.5 MB, free: 8.926 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009739/0.1195, allocations: 5.074 MB / 344.5 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002485/0.122, allocations: 63.62 kB / 344.6 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002464/0.1245, allocations: 0.75 MB / 345.3 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004438/0.129, allocations: 1.036 MB / 346.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001996/0.131, allocations: 0.6161 MB / 347 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004577/0.1356, allocations: 2.626 MB / 349.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002909/0.1385, allocations: 2.121 MB / 351.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002149/0.1407, allocations: 1.273 MB / 353 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002725/0.1434, allocations: 1.642 MB / 354.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003998/0.1438, allocations: 204 kB / 354.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.1449, allocations: 435.6 kB / 355.3 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009372/0.1459, allocations: 0.9386 MB / 356.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007885/0.1467, allocations: 0.7498 MB / 357 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005518/0.1522, allocations: 6.011 MB / 363 MB, free: 1.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1522, allocations: 0 / 363 MB, free: 1.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1522, allocations: 7.938 kB / 363 MB, free: 1.293 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001619/0.1524, allocations: 0 / 363 MB, free: 1.293 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.008197/0.1606, allocations: 3.658 MB / 366.6 MB, free: 13.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.1606, allocations: 8.031 kB / 366.6 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008204/0.1615, allocations: 442.8 kB / 367.1 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/0.1628, allocations: 451.2 kB / 367.5 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003951/0.1667, allocations: 2.25 MB / 369.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007014/0.1674, allocations: 423.2 kB / 370.2 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000449/0.1679, allocations: 315.8 kB / 370.5 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007198/0.1751, allocations: 4.226 MB / 374.7 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.57e-05/0.1752, allocations: 23.78 kB / 374.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002745/0.1755, allocations: 128 kB / 374.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001327/0.1756, allocations: 146.1 kB / 375 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006718/0.1824, allocations: 3.846 MB / 378.9 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1869/0.3693, allocations: 14.14 MB / 393 MB, free: 40.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003301/0.3727, allocations: 2.177 MB / 395.2 MB, free: 39.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002776/0.373, allocations: 219.2 kB / 395.4 MB, free: 39.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001984/0.375, allocations: 1.317 MB / 396.7 MB, free: 38.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=186): time 4.498e-06/0.375, allocations: 0 / 396.7 MB, free: 38.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=234): time 0.02445/0.3995, allocations: 13.11 MB / 409.8 MB, free: 30.4 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002842/0.4023, allocations: 3.353 MB / 413.2 MB, free: 26.87 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002516/0.4049, allocations: 2.201 MB / 415.4 MB, free: 24.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002483/0.4051, allocations: 82.06 kB / 415.4 MB, free: 24.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008334/0.406, allocations: 1.489 MB / 416.9 MB, free: 23.05 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004458/0.4064, allocations: 0.7893 MB / 417.7 MB, free: 22.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.4066, allocations: 52 kB / 417.8 MB, free: 22.22 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.4067, allocations: 411.3 kB / 418.2 MB, free: 21.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/0.4084, allocations: 1.294 MB / 419.5 MB, free: 20.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001932/0.4104, allocations: 1.935 MB / 421.4 MB, free: 18.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00197/0.4124, allocations: 1.545 MB / 422.9 MB, free: 16.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.4124, allocations: 4 kB / 423 MB, free: 16.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.005179/0.4176, allocations: 3.889 MB / 426.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.4176, allocations: 20.36 kB / 426.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.4176, allocations: 20 kB / 426.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/0.4187, allocations: 0.5 MB / 427.4 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00223/0.421, allocations: 0.6669 MB / 428 MB, free: 11.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004267/0.4252, allocations: 4.737 MB / 432.8 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.4273, allocations: 203.8 kB / 433 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001869/0.4275, allocations: 112 kB / 433.1 MB, free: 6.262 MB / 318.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.001803/0.4293, allocations: 1.074 MB / 434.2 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005299/0.4298, allocations: 256.8 kB / 434.4 MB, free: 4.922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005512/0.4354, allocations: 3.675 MB / 438.1 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.565e-05/0.4354, allocations: 20 kB / 438.1 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.4354, allocations: 4 kB / 438.1 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/0.4355, allocations: 16.61 kB / 438.1 MB, free: 1.176 MB / 318.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.01554/0.451, allocations: 9.353 MB / 447.5 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.451, allocations: 192 / 447.5 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/0.4528, allocations: 435.4 kB / 447.9 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001563/0.4544, allocations: 0.6255 MB / 448.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001566/0.4546, allocations: 55.97 kB / 448.6 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008444/0.463, allocations: 7.687 MB / 456.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003594/0.4666, allocations: 3.104 MB / 459.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009318/0.476, allocations: 5.554 MB / 464.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001487/0.4775, allocations: 0.6226 MB / 465.6 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000353/0.4779, allocations: 52 kB / 465.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.4792, allocations: 163.8 kB / 465.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004235/0.4797, allocations: 193.6 kB / 466 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/0.4798, allocations: 67.97 kB / 466 MB, free: 4.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00229/0.4821, allocations: 1.504 MB / 467.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4821, allocations: 0 / 467.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002427/0.4845, allocations: 0.777 MB / 468.3 MB, free: 2.246 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.009647/0.4942, allocations: 6.718 MB / 475 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006021/0.5003, allocations: 3.716 MB / 478.7 MB, free: 7.699 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.5003, allocations: 4.188 kB / 478.7 MB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003645/0.5039, allocations: 2.27 MB / 481 MB, free: 5.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002796/0.5068, allocations: 0.5694 MB / 481.6 MB, free: 4.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02079/0.5276, allocations: 22.1 MB / 0.4919 GB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002182/0.5298, allocations: 2.443 MB / 0.4943 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002203/0.532, allocations: 0.6028 MB / 0.4949 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001844/0.5339, allocations: 1.339 MB / 0.4962 GB, free: 9.73 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5339, allocations: 0 / 0.4962 GB, free: 9.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.251/0.7849, allocations: 65.18 MB / 0.5598 GB, free: 139.3 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/0.7851, allocations: 264.2 kB / 0.5601 GB, free: 138.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.095/3.881, allocations: 0 / 0.5601 GB, free: 138.9 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-05 Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise_res.mat does not exist to compare? outputFormat=mat