Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 226.6 MB / 244.7 MB, free: 8.082 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007951/0.0007951, allocations: 98 kB / 296.7 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002335/0.0002337, allocations: 8 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2023, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.009152/0.2115, allocations: 12.11 MB / 420.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007426/0.219, allocations: 5.065 MB / 425.3 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002097/0.2211, allocations: 71.69 kB / 425.4 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001996/0.2231, allocations: 0.7531 MB / 426.1 MB, free: 9.645 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003096/0.2262, allocations: 0.9593 MB / 427.1 MB, free: 8.684 MB / 298.7 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.001911/0.2282, allocations: 0.5928 MB / 427.7 MB, free: 8.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004143/0.2323, allocations: 4.179 MB / 431.9 MB, free: 3.891 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002683/0.235, allocations: 2.636 MB / 434.5 MB, free: 1.184 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002002/0.237, allocations: 1.366 MB / 435.9 MB, free: 15.81 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003092/0.2402, allocations: 1.829 MB / 437.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006847/0.2409, allocations: 208 kB / 437.9 MB, free: 13.77 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001482/0.2423, allocations: 487.6 kB / 438.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.2435, allocations: 0.9889 MB / 439.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00241/0.2459, allocations: 1.759 MB / 441.1 MB, free: 10.53 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006184/0.2521, allocations: 6.136 MB / 447.3 MB, free: 4.379 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.2521, allocations: 0 / 447.3 MB, free: 4.379 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2521, allocations: 0 / 447.3 MB, free: 4.379 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001751/0.2523, allocations: 0 / 447.3 MB, free: 4.379 MB / 314.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.008204/0.2605, allocations: 3.67 MB / 450.9 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.2606, allocations: 8.031 kB / 450.9 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009374/0.2615, allocations: 451 kB / 451.4 MB, free: 184 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001373/0.2629, allocations: 460 kB / 451.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003935/0.2669, allocations: 2.416 MB / 454.2 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007288/0.2676, allocations: 419.2 kB / 454.6 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005752/0.2682, allocations: 319.8 kB / 455 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007863/0.2761, allocations: 4.261 MB / 459.2 MB, free: 8.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.493e-05/0.2762, allocations: 15.83 kB / 459.2 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000293/0.2765, allocations: 128 kB / 459.4 MB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/0.2766, allocations: 150.1 kB / 459.5 MB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007013/0.2837, allocations: 3.85 MB / 463.4 MB, free: 4.031 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02136/0.305, allocations: 14.27 MB / 477.6 MB, free: 5.375 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003306/0.3084, allocations: 2.177 MB / 479.8 MB, free: 3.117 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002208/0.3106, allocations: 1.31 MB / 481.1 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000307/0.311, allocations: 216.2 kB / 481.3 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002164/0.3131, allocations: 1.326 MB / 482.7 MB, free: 216 kB / 346.7 MB Notification: Performance of pre-optimization done (n=186): time 3.757e-06/0.3132, allocations: 0 / 482.7 MB, free: 216 kB / 346.7 MB Notification: Performance of matching and sorting (n=234): time 0.02853/0.3417, allocations: 13.02 MB / 495.7 MB, free: 3.086 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003712/0.3455, allocations: 3.255 MB / 498.9 MB, free: 15.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00355/0.349, allocations: 2.291 MB / 0.4895 GB, free: 13.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004636/0.3495, allocations: 81.64 kB / 0.4896 GB, free: 13.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001379/0.3509, allocations: 1.493 MB / 0.491 GB, free: 11.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009086/0.3518, allocations: 0.7856 MB / 0.4918 GB, free: 10.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.352, allocations: 59.97 kB / 0.4918 GB, free: 10.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.3522, allocations: 415.4 kB / 0.4922 GB, free: 10.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002254/0.3545, allocations: 1.283 MB / 0.4935 GB, free: 9.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002652/0.3571, allocations: 1.933 MB / 0.4954 GB, free: 6.984 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004935/0.3621, allocations: 3.296 MB / 0.4986 GB, free: 3.414 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-05/0.3621, allocations: 4 kB / 0.4986 GB, free: 3.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.182/0.5441, allocations: 3.872 MB / 0.5024 GB, free: 87.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.5442, allocations: 12.06 kB / 0.5024 GB, free: 87.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-05/0.5443, allocations: 19.44 kB / 0.5024 GB, free: 87.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/0.5457, allocations: 0.5492 MB / 0.5029 GB, free: 87.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002799/0.5486, allocations: 0.6662 MB / 0.5036 GB, free: 87.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00467/0.5532, allocations: 4.66 MB / 0.5081 GB, free: 84.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002356/0.5556, allocations: 206.6 kB / 0.5083 GB, free: 84.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002698/0.5559, allocations: 112.5 kB / 0.5084 GB, free: 84.08 MB / 378.7 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.001818/0.5577, allocations: 1.091 MB / 0.5095 GB, free: 83.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005092/0.5582, allocations: 255.7 kB / 0.5098 GB, free: 83.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006038/0.5643, allocations: 3.659 MB / 0.5133 GB, free: 82.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/0.5643, allocations: 22 kB / 0.5133 GB, free: 82.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.5644, allocations: 6.453 kB / 0.5134 GB, free: 82.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.928e-05/0.5644, allocations: 16.45 kB / 0.5134 GB, free: 82.02 MB / 378.7 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.01319/0.5776, allocations: 9.476 MB / 0.5226 GB, free: 77.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.5776, allocations: 0 / 0.5226 GB, free: 77.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/0.5793, allocations: 431.2 kB / 0.523 GB, free: 77.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/0.5808, allocations: 0.6818 MB / 0.5237 GB, free: 76.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/0.5809, allocations: 54.72 kB / 0.5238 GB, free: 76.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006586/0.5875, allocations: 7.476 MB / 0.5311 GB, free: 69.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002566/0.5901, allocations: 3.029 MB / 0.534 GB, free: 65.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007784/0.5979, allocations: 5.423 MB / 0.5393 GB, free: 60.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.5992, allocations: 0.6544 MB / 0.5399 GB, free: 59.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004363/0.5997, allocations: 44 kB / 0.54 GB, free: 59.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/0.6011, allocations: 173.8 kB / 0.5402 GB, free: 59.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004881/0.6016, allocations: 201.6 kB / 0.5403 GB, free: 59.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.6018, allocations: 67.97 kB / 0.5404 GB, free: 59.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001993/0.6038, allocations: 1.555 MB / 0.5419 GB, free: 57.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6038, allocations: 0 / 0.5419 GB, free: 57.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002452/0.6062, allocations: 0.7729 MB / 0.5427 GB, free: 57.18 MB / 378.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) * 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.00871/0.6149, allocations: 6.458 MB / 0.549 GB, free: 50.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005307/0.6203, allocations: 3.701 MB / 0.5526 GB, free: 47.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.6203, allocations: 4 kB / 0.5526 GB, free: 47.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003147/0.6235, allocations: 2.262 MB / 0.5548 GB, free: 44.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003421/0.6269, allocations: 0.6159 MB / 0.5554 GB, free: 44.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04581/0.6728, allocations: 22.67 MB / 0.5776 GB, free: 20.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001641/0.6745, allocations: 2.362 MB / 0.5799 GB, free: 17.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002007/0.6765, allocations: 1.362 MB / 0.5812 GB, free: 16.32 MB / 378.7 MB Notification: Performance of SimCode: time 9.41e-07/0.6765, allocations: 0 / 0.5812 GB, free: 16.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.243/9.919, allocations: 124.4 MB / 0.7027 GB, free: 145.9 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoise_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-05 Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoise.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ActuatorWithNoise/ActuatorWithNoise.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches