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/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: translateModel(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1600,variableFilter="time|controller.busdelay.y|controller.positionToSpeed.x|controller.position_PI.x|controller.speed_PI.x|elastoGap.s_rel|elastoGap.v_rel|gearbox.phi_rel|gearbox.w_rel|rodMass.s|rodMass.v|slewRateLimiter.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise") translateModel(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1600,variableFilter="time|controller.busdelay.y|controller.positionToSpeed.x|controller.position_PI.x|controller.speed_PI.x|elastoGap.s_rel|elastoGap.v_rel|gearbox.phi_rel|gearbox.w_rel|rodMass.s|rodMass.v|slewRateLimiter.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001486/0.001486, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001041/0.001041, allocations: 102.5 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001046, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2206, allocations: 50.45 MB / 407.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01201/0.2326, allocations: 13.55 MB / 420.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008742/0.2414, allocations: 5.305 MB / 425.9 MB, free: 8.898 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002991/0.2445, allocations: 79.62 kB / 426 MB, free: 8.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002609/0.2471, allocations: 0.8273 MB / 426.8 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003612/0.2508, allocations: 1.035 MB / 427.8 MB, free: 6.953 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.002045/0.2528, allocations: 0.8702 MB / 428.7 MB, free: 6.082 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004126/0.2569, allocations: 4.533 MB / 433.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002851/0.2598, allocations: 2.667 MB / 435.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002444/0.2623, allocations: 1.596 MB / 437.5 MB, free: 13.19 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003404/0.2657, allocations: 2.159 MB / 439.7 MB, free: 11.03 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007416/0.2664, allocations: 296 kB / 440 MB, free: 10.74 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001454/0.2679, allocations: 0.5933 MB / 440.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.269, allocations: 1.122 MB / 441.7 MB, free: 9.02 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002491/0.2715, allocations: 1.994 MB / 443.7 MB, free: 7.016 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006725/0.2782, allocations: 7.228 MB / 450.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.2783, allocations: 4 kB / 450.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2783, allocations: 0 / 450.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001729/0.2785, allocations: 0 / 450.9 MB, free: 15.76 MB / 330.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.01258/0.2911, allocations: 4.391 MB / 455.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.2911, allocations: 8.031 kB / 455.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.2928, allocations: 456.1 kB / 455.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004227/0.297, allocations: 2.401 MB / 458.1 MB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006479/0.2977, allocations: 403.2 kB / 458.5 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004715/0.2981, allocations: 319.8 kB / 458.9 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006752/0.3049, allocations: 4.261 MB / 463.1 MB, free: 3.328 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.232e-05/0.305, allocations: 11.91 kB / 463.1 MB, free: 3.316 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000274/0.3053, allocations: 120 kB / 463.2 MB, free: 3.199 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/0.3054, allocations: 158 kB / 463.4 MB, free: 3.043 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006397/0.3118, allocations: 3.83 MB / 467.2 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02046/0.3323, allocations: 14.18 MB / 481.4 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003323/0.3357, allocations: 2.14 MB / 483.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002153/0.3379, allocations: 1.298 MB / 484.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003264/0.3382, allocations: 212.2 kB / 485.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00207/0.3403, allocations: 1.303 MB / 486.4 MB, free: 11.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=186): time 4.058e-06/0.3403, allocations: 0 / 486.4 MB, free: 11.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=234): time 0.02714/0.3674, allocations: 12.78 MB / 499.1 MB, free: 14.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003453/0.3709, allocations: 3.259 MB / 0.4906 GB, free: 11.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/0.3743, allocations: 2.303 MB / 0.4929 GB, free: 8.891 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004467/0.3748, allocations: 81.69 kB / 0.4929 GB, free: 8.805 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001219/0.376, allocations: 1.497 MB / 0.4944 GB, free: 7.285 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008369/0.3769, allocations: 0.7894 MB / 0.4952 GB, free: 6.484 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007357/0.3776, allocations: 489.3 kB / 0.4956 GB, free: 6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.3778, allocations: 301.2 kB / 0.4959 GB, free: 5.703 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00211/0.3799, allocations: 1.29 MB / 0.4972 GB, free: 4.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002877/0.3828, allocations: 1.937 MB / 0.4991 GB, free: 2.211 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2096/0.5924, allocations: 3.277 MB / 0.5023 GB, free: 87.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.347e-05/0.5925, allocations: 8.766 kB / 0.5023 GB, free: 87.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007031/0.5995, allocations: 3.892 MB / 0.5061 GB, free: 86.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.5996, allocations: 11.88 kB / 0.5061 GB, free: 86.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.791e-05/0.5996, allocations: 18.19 kB / 0.5061 GB, free: 86.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.6008, allocations: 0.5365 MB / 0.5066 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002609/0.6034, allocations: 0.6483 MB / 0.5073 GB, free: 85.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004864/0.6083, allocations: 4.655 MB / 0.5118 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002428/0.6108, allocations: 184.1 kB / 0.512 GB, free: 82.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003542/0.6111, allocations: 112.6 kB / 0.5121 GB, free: 82.28 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,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.001984/0.6131, allocations: 1.098 MB / 0.5132 GB, free: 81.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007416/0.6139, allocations: 255.3 kB / 0.5134 GB, free: 81.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005898/0.6198, allocations: 3.631 MB / 0.517 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/0.6198, allocations: 25.69 kB / 0.517 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.6198, allocations: 3.906 kB / 0.517 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.817e-05/0.6199, allocations: 11.3 kB / 0.517 GB, free: 80.18 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.0141/0.634, allocations: 9.371 MB / 0.5262 GB, free: 73.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/0.634, allocations: 4 kB / 0.5262 GB, free: 73.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00167/0.6357, allocations: 426.9 kB / 0.5266 GB, free: 73.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.6373, allocations: 0.6751 MB / 0.5272 GB, free: 72.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001676/0.6374, allocations: 59.95 kB / 0.5273 GB, free: 72.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00684/0.6443, allocations: 7.487 MB / 0.5346 GB, free: 64.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002661/0.647, allocations: 3.024 MB / 0.5376 GB, free: 61.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04329/0.6903, allocations: 29.22 MB / 0.5661 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/0.6916, allocations: 0.6383 MB / 0.5667 GB, free: 31.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000327/0.692, allocations: 48 kB / 0.5668 GB, free: 30.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001426/0.6934, allocations: 147.8 kB / 0.5669 GB, free: 30.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000528/0.6939, allocations: 185.7 kB / 0.5671 GB, free: 30.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/0.6941, allocations: 67.97 kB / 0.5671 GB, free: 30.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002285/0.6964, allocations: 1.567 MB / 0.5687 GB, free: 29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6964, allocations: 0 / 0.5687 GB, free: 29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00351/0.6999, allocations: 1.055 MB / 0.5697 GB, free: 27.96 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 (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.001458/0.7014, allocations: 0.6684 MB / 0.5704 GB, free: 27.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00543/0.7068, allocations: 3.676 MB / 0.5739 GB, free: 23.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.7069, allocations: 448 / 0.5739 GB, free: 23.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003376/0.7102, allocations: 2.265 MB / 0.5762 GB, free: 21.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00328/0.7136, allocations: 0.6202 MB / 0.5768 GB, free: 20.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/0.727, allocations: 10.54 MB / 0.587 GB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001733/0.7288, allocations: 2.452 MB / 0.5894 GB, free: 7.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002239/0.731, allocations: 0.6499 MB / 0.5901 GB, free: 7.074 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008166/0.7318, allocations: 227.3 kB / 0.5903 GB, free: 6.852 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.7319, allocations: 0 / 0.5903 GB, free: 6.852 MB / 378.7 MB Notification: Performance of Templates: time 0.08265/0.8145, allocations: 52.51 MB / 0.6416 GB, free: 2.57 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ActuatorWithNoise/ActuatorWithNoise.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches