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.001212/0.001212, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 57.88 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1066, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01696/0.1236, allocations: 13.69 MB / 371.3 MB, free: 244 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2248/0.3485, allocations: 5.352 MB / 376.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003413/0.3519, allocations: 78.44 kB / 376.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004169/0.3562, allocations: 0.9662 MB / 377.7 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006139/0.3624, allocations: 1.163 MB / 378.8 MB, free: 8.898 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.003732/0.3661, allocations: 0.972 MB / 379.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007068/0.3732, allocations: 4.32 MB / 384.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004842/0.3781, allocations: 3.159 MB / 387.3 MB, free: 4.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004905/0.383, allocations: 1.896 MB / 389.2 MB, free: 3.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005921/0.389, allocations: 2.328 MB / 391.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002234/0.3912, allocations: 0.5682 MB / 392.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003845/0.3951, allocations: 0.8663 MB / 392.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002354/0.3974, allocations: 1.413 MB / 394.4 MB, free: 1.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00595/0.4034, allocations: 2.286 MB / 396.6 MB, free: 376 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009649/0.4131, allocations: 7.44 MB / 404.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.4131, allocations: 0 / 404.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.13e-06/0.4131, allocations: 6.797 kB / 404.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002385/0.4134, allocations: 3.938 kB / 404.1 MB, free: 10.77 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.01516/0.4286, allocations: 4.393 MB / 408.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.4286, allocations: 8.031 kB / 408.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009787/0.4296, allocations: 445.6 kB / 408.9 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002009/0.4316, allocations: 464 kB / 409.4 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00564/0.4373, allocations: 2.404 MB / 411.8 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007521/0.4381, allocations: 402.2 kB / 412.2 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007108/0.4388, allocations: 319.8 kB / 412.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009692/0.4485, allocations: 4.255 MB / 416.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.942e-05/0.4486, allocations: 11.91 kB / 416.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003081/0.4489, allocations: 131 kB / 416.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001652/0.4491, allocations: 146.1 kB / 417 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007307/0.4564, allocations: 3.834 MB / 420.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02587/0.4823, allocations: 14.18 MB / 435 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003864/0.4862, allocations: 2.138 MB / 437.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002616/0.4889, allocations: 1.288 MB / 438.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003922/0.4893, allocations: 215.1 kB / 438.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002566/0.4919, allocations: 1.306 MB / 440 MB, free: 6.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=186): time 5.37e-06/0.4919, allocations: 0 / 440 MB, free: 6.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.03309/0.525, allocations: 12.79 MB / 452.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004308/0.5293, allocations: 3.352 MB / 456.1 MB, free: 6.477 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004912/0.5343, allocations: 2.31 MB / 458.4 MB, free: 4.137 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005761/0.5349, allocations: 73.7 kB / 458.5 MB, free: 4.059 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002065/0.537, allocations: 1.505 MB / 460 MB, free: 2.539 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00137/0.5384, allocations: 0.7853 MB / 460.8 MB, free: 1.762 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001436/0.5398, allocations: 485.3 kB / 461.3 MB, free: 1.281 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.54, allocations: 305.1 kB / 461.6 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002322/0.5423, allocations: 1.282 MB / 462.9 MB, free: 15.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002767/0.5451, allocations: 1.933 MB / 464.8 MB, free: 13.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004889/0.55, allocations: 3.292 MB / 468.1 MB, free: 9.934 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.261e-05/0.55, allocations: 7.938 kB / 468.1 MB, free: 9.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007065/0.5571, allocations: 3.885 MB / 472 MB, free: 5.977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.786e-05/0.5571, allocations: 15.94 kB / 472 MB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.801e-05/0.5572, allocations: 20 kB / 472 MB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.5586, allocations: 0.5511 MB / 472.6 MB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002719/0.5613, allocations: 0.6474 MB / 473.2 MB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005997/0.5673, allocations: 5.049 MB / 478.3 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002671/0.57, allocations: 191.6 kB / 478.4 MB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003414/0.5704, allocations: 120 kB / 478.6 MB, free: 15.11 MB / 398.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,globalSeed.id_impure,globalSeed.seed,motor.uniformNoise.actualGlobalSeed,motor.uniformNoise.localSeed,gearbox.lossyGear.ideal,gearbox.lossyGear.mode,$PRE.gearbox.lossyGear.mode,gearbox.lossyGear.locked,gearbox.lossyGear.startBackward,gearbox.lossyGear.startForward,gearbox.lossyGear.tau_aPos,motor.uniformNoise.r_raw,$PRE.motor.uniformNoise.r_raw,motor.uniformNoise.r,$PRE.motor.uniformNoise.r,motor.uniformNoise.state[4],$PRE.motor.uniformNoise.state[4],motor.uniformNoise.state[3],$PRE.motor.uniformNoise.state[3],motor.uniformNoise.state[2],$PRE.motor.uniformNoise.state[2],motor.uniformNoise.state[1],$PRE.motor.uniformNoise.state[1]) * 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 (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of prepare postOptimizeDAE: time 0.002236/0.5726, allocations: 1.085 MB / 479.6 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007652/0.5734, allocations: 260.8 kB / 479.9 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006635/0.5801, allocations: 3.624 MB / 483.5 MB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.125e-05/0.5801, allocations: 23.98 kB / 483.5 MB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.5801, allocations: 8 kB / 483.6 MB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.5802, allocations: 7.969 kB / 483.6 MB, free: 10.06 MB / 398.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.01581/0.596, allocations: 9.394 MB / 493 MB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.596, allocations: 0 / 493 MB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001863/0.5979, allocations: 427.6 kB / 493.4 MB, free: 152 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/0.5997, allocations: 0.6824 MB / 494.1 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002223/0.5999, allocations: 51.97 kB / 494.1 MB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009358/0.6093, allocations: 8.14 MB / 0.4905 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003341/0.6126, allocations: 3.122 MB / 0.4935 GB, free: 3.578 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009551/0.6222, allocations: 5.352 MB / 0.4988 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/0.6237, allocations: 0.6422 MB / 0.4994 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004688/0.6242, allocations: 51.94 kB / 0.4994 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001608/0.6258, allocations: 143.8 kB / 0.4996 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004591/0.6263, allocations: 193.7 kB / 0.4997 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/0.6265, allocations: 67.97 kB / 0.4998 GB, free: 13.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002362/0.6288, allocations: 1.567 MB / 0.5013 GB, free: 11.48 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6288, allocations: 0 / 0.5013 GB, free: 11.48 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002826/0.6317, allocations: 0.7772 MB / 0.5021 GB, free: 10.71 MB / 430.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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (3,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,22)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01118/0.6429, allocations: 6.409 MB / 0.5084 GB, free: 4.395 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0132/0.6561, allocations: 4.934 MB / 0.5132 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.865e-05/0.6562, allocations: 7.984 kB / 0.5132 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004446/0.6607, allocations: 2.246 MB / 0.5154 GB, free: 13.08 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004218/0.6649, allocations: 0.6561 MB / 0.516 GB, free: 12.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2123/0.8772, allocations: 30.01 MB / 0.5453 GB, free: 138.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00221/0.8795, allocations: 2.386 MB / 0.5477 GB, free: 137.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002337/0.8818, allocations: 0.6057 MB / 0.5483 GB, free: 137.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001671/0.8835, allocations: 1.35 MB / 0.5496 GB, free: 136.6 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.8835, allocations: 0 / 0.5496 GB, free: 136.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1198/1.003, allocations: 71.3 MB / 0.6192 GB, free: 73.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.09/15.09, allocations: 11.86 kB / 0.6192 GB, free: 73.44 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.csv --start-time 0 --stop-time 8 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Blocks_Examples_Noise_ActuatorWithNoise.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ActuatorWithNoise/ActuatorWithNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches