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.001489/0.00149, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001751/0.001751, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 63.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2743, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01637/0.2908, allocations: 13.69 MB / 422.5 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.301, allocations: 5.365 MB / 427.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002741/0.3038, allocations: 75.69 kB / 427.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002818/0.3067, allocations: 1.021 MB / 428.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004055/0.3107, allocations: 1.219 MB / 430.1 MB, free: 12.09 MB / 350.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.00234/0.3131, allocations: 0.9864 MB / 431.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004732/0.3178, allocations: 4.331 MB / 435.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00373/0.3216, allocations: 3.17 MB / 438.6 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00314/0.3247, allocations: 1.92 MB / 440.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003611/0.3284, allocations: 2.323 MB / 442.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001157/0.3295, allocations: 0.5703 MB / 443.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001945/0.3315, allocations: 0.8707 MB / 444.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001411/0.3329, allocations: 1.411 MB / 445.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003035/0.3359, allocations: 2.283 MB / 448 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008883/0.3448, allocations: 7.541 MB / 455.5 MB, free: 2.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.142e-05/0.3449, allocations: 4 kB / 455.5 MB, free: 2.539 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3449, allocations: 0 / 455.5 MB, free: 2.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002025/0.3451, allocations: 0 / 455.5 MB, free: 2.539 MB / 366.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.01094/0.3561, allocations: 4.503 MB / 460 MB, free: 13.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.3561, allocations: 12.03 kB / 460.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006773/0.3568, allocations: 446.9 kB / 460.5 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001583/0.3584, allocations: 478.2 kB / 461 MB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00477/0.3632, allocations: 2.488 MB / 463.4 MB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003499/0.3636, allocations: 335.3 kB / 463.8 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005605/0.3641, allocations: 327.9 kB / 464.1 MB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007989/0.3721, allocations: 4.261 MB / 468.4 MB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.214e-05/0.3723, allocations: 7.953 kB / 468.4 MB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000317/0.3726, allocations: 128 kB / 468.5 MB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001525/0.3728, allocations: 146.1 kB / 468.6 MB, free: 5.215 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006922/0.3797, allocations: 3.834 MB / 472.5 MB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0252/0.4049, allocations: 14.07 MB / 486.5 MB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003819/0.4088, allocations: 2.138 MB / 488.7 MB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002407/0.4112, allocations: 1.259 MB / 489.9 MB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000371/0.4116, allocations: 220.2 kB / 490.2 MB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002507/0.4141, allocations: 1.303 MB / 491.5 MB, free: 13.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 6.051e-06/0.4142, allocations: 0 / 491.5 MB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.03256/0.4467, allocations: 12.87 MB / 0.4925 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004208/0.451, allocations: 3.339 MB / 0.4958 GB, free: 13.36 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004903/0.4559, allocations: 2.314 MB / 0.498 GB, free: 11.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000456/0.4564, allocations: 81.69 kB / 0.4981 GB, free: 10.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001635/0.458, allocations: 1.536 MB / 0.4996 GB, free: 9.379 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001249/0.4593, allocations: 0.829 MB / 0.5004 GB, free: 8.543 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001589/0.4609, allocations: 485.5 kB / 0.5009 GB, free: 8.062 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.4611, allocations: 305.1 kB / 0.5012 GB, free: 7.762 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00274/0.4638, allocations: 1.286 MB / 0.5024 GB, free: 6.473 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00296/0.4668, allocations: 1.933 MB / 0.5043 GB, free: 4.277 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005339/0.4722, allocations: 3.285 MB / 0.5075 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.869e-05/0.4722, allocations: 4 kB / 0.5075 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007746/0.48, allocations: 3.902 MB / 0.5113 GB, free: 12.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.34e-05/0.48, allocations: 12.34 kB / 0.5113 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.273e-05/0.4801, allocations: 20 kB / 0.5114 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/0.4816, allocations: 0.5537 MB / 0.5119 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002817/0.4845, allocations: 0.6513 MB / 0.5125 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006116/0.4906, allocations: 5.049 MB / 0.5175 GB, free: 6.172 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002592/0.4932, allocations: 195.8 kB / 0.5177 GB, free: 5.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004156/0.4937, allocations: 108 kB / 0.5178 GB, free: 5.875 MB / 446.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.00259/0.4963, allocations: 1.094 MB / 0.5188 GB, free: 4.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009045/0.4972, allocations: 270.3 kB / 0.5191 GB, free: 4.504 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007267/0.5045, allocations: 3.628 MB / 0.5226 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.122e-05/0.5045, allocations: 28 kB / 0.5227 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/0.5045, allocations: 0 / 0.5227 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-05/0.5045, allocations: 11.95 kB / 0.5227 GB, free: 0.8047 MB / 446.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.02337/0.5279, allocations: 9.311 MB / 0.5318 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.528, allocations: 0 / 0.5318 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002755/0.5308, allocations: 423.6 kB / 0.5322 GB, free: 6.922 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00258/0.5334, allocations: 0.6785 MB / 0.5328 GB, free: 6.23 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000396/0.5338, allocations: 55.97 kB / 0.5329 GB, free: 6.176 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2384/0.7722, allocations: 8.142 MB / 0.5408 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00392/0.7762, allocations: 3.114 MB / 0.5439 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009467/0.7857, allocations: 5.375 MB / 0.5491 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/0.7873, allocations: 0.6496 MB / 0.5498 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006852/0.788, allocations: 47.53 kB / 0.5498 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001791/0.7898, allocations: 149.9 kB / 0.5499 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004409/0.7902, allocations: 196.2 kB / 0.5501 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001539/0.7904, allocations: 64.33 kB / 0.5502 GB, free: 116.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002888/0.7933, allocations: 1.571 MB / 0.5517 GB, free: 116.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7933, allocations: 0 / 0.5517 GB, free: 116.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003192/0.7965, allocations: 0.7747 MB / 0.5525 GB, free: 116.1 MB / 462.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.009628/0.8061, allocations: 6.411 MB / 0.5587 GB, free: 112.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005673/0.8119, allocations: 3.692 MB / 0.5623 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.8119, allocations: 0 / 0.5623 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003306/0.8152, allocations: 2.267 MB / 0.5646 GB, free: 107.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003669/0.8189, allocations: 0.6614 MB / 0.5652 GB, free: 106.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04921/0.8681, allocations: 26.54 MB / 0.5911 GB, free: 80.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004691/0.8729, allocations: 2.389 MB / 0.5935 GB, free: 77.94 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003274/0.8762, allocations: 0.5991 MB / 0.594 GB, free: 77.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002992/0.8792, allocations: 1.358 MB / 0.5954 GB, free: 75.97 MB / 462.1 MB Notification: Performance of SimCode: time 3.266e-06/0.8793, allocations: 4 kB / 0.5954 GB, free: 75.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1225/1.002, allocations: 70.85 MB / 0.6646 GB, free: 5.516 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.63/19.63, allocations: 7.688 kB / 0.6646 GB, free: 5.508 MB / 462.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