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: 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_cpp_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_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.00109, allocations: 201.1 kB / 17.05 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 226.6 MB / 244.3 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007409/0.000741, allocations: 100.1 kB / 296.4 MB, free: 6.777 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002269/0.0002269, allocations: 4 kB / 356.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.1947, allocations: 51.29 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.008936/0.2037, allocations: 12.09 MB / 419.6 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006974/0.2107, allocations: 5.066 MB / 424.7 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001777/0.2125, allocations: 75.62 kB / 424.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00163/0.2141, allocations: 0.7453 MB / 425.5 MB, free: 9.777 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002111/0.2163, allocations: 0.9575 MB / 426.4 MB, free: 8.82 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.001321/0.2176, allocations: 0.5961 MB / 427 MB, free: 8.227 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003046/0.2207, allocations: 4.114 MB / 431.1 MB, free: 4.094 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002157/0.2228, allocations: 2.169 MB / 433.3 MB, free: 1.879 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.2246, allocations: 1.362 MB / 434.7 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002329/0.2269, allocations: 1.833 MB / 436.5 MB, free: 14.67 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005266/0.2275, allocations: 208 kB / 436.7 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001168/0.2287, allocations: 459.6 kB / 437.2 MB, free: 14.02 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000918/0.2296, allocations: 0.9772 MB / 438.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008182/0.2304, allocations: 0.7576 MB / 438.9 MB, free: 12.27 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005147/0.2356, allocations: 6.143 MB / 445 MB, free: 6.113 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2356, allocations: 0 / 445 MB, free: 6.113 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2356, allocations: 0 / 445 MB, free: 6.113 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001076/0.2357, allocations: 4 kB / 445 MB, free: 6.109 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.007792/0.2435, allocations: 3.709 MB / 448.7 MB, free: 2.332 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.2436, allocations: 8.031 kB / 448.8 MB, free: 2.324 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/0.2452, allocations: 463 kB / 449.2 MB, free: 1.867 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00404/0.2493, allocations: 2.34 MB / 451.5 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007097/0.25, allocations: 427.2 kB / 452 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005018/0.2505, allocations: 319.8 kB / 452.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007318/0.2578, allocations: 4.257 MB / 456.5 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.798e-05/0.2579, allocations: 15.83 kB / 456.6 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002922/0.2582, allocations: 128 kB / 456.7 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/0.2584, allocations: 146.1 kB / 456.8 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00653/0.2649, allocations: 3.854 MB / 460.7 MB, free: 6.246 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01879/0.2837, allocations: 14.25 MB / 474.9 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003168/0.2869, allocations: 2.174 MB / 477.1 MB, free: 5.359 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002434/0.2894, allocations: 1.322 MB / 478.4 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003338/0.2897, allocations: 216.2 kB / 478.6 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00241/0.2921, allocations: 1.318 MB / 480 MB, free: 2.453 MB / 346.7 MB Notification: Performance of pre-optimization done (n=186): time 3.727e-06/0.2921, allocations: 4 kB / 480 MB, free: 2.449 MB / 346.7 MB Notification: Performance of matching and sorting (n=234): time 0.02771/0.3199, allocations: 13.01 MB / 493 MB, free: 5.332 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003445/0.3234, allocations: 3.259 MB / 496.2 MB, free: 1.895 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003162/0.3265, allocations: 2.295 MB / 498.5 MB, free: 15.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002585/0.3268, allocations: 77.7 kB / 498.6 MB, free: 15.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.328, allocations: 1.497 MB / 0.4884 GB, free: 13.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006172/0.3286, allocations: 0.7856 MB / 0.4891 GB, free: 13.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.3287, allocations: 63.97 kB / 0.4892 GB, free: 13.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.3289, allocations: 411.4 kB / 0.4896 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002074/0.331, allocations: 1.282 MB / 0.4908 GB, free: 11.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002408/0.3334, allocations: 1.941 MB / 0.4927 GB, free: 9.215 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002338/0.3358, allocations: 1.537 MB / 0.4942 GB, free: 7.656 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.3358, allocations: 4 kB / 0.4942 GB, free: 7.652 MB / 378.7 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.006119/0.3419, allocations: 3.877 MB / 0.498 GB, free: 3.711 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.3419, allocations: 20.06 kB / 0.498 GB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.342, allocations: 16 kB / 0.4981 GB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.3433, allocations: 0.5383 MB / 0.4986 GB, free: 3.125 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00242/0.3457, allocations: 0.6708 MB / 0.4992 GB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1702/0.516, allocations: 4.65 MB / 0.5038 GB, free: 85.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002467/0.5185, allocations: 210.4 kB / 0.504 GB, free: 85.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002732/0.5188, allocations: 110.5 kB / 0.5041 GB, free: 85.29 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.001919/0.5207, allocations: 1.08 MB / 0.5051 GB, free: 85.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004313/0.5211, allocations: 259.1 kB / 0.5054 GB, free: 85.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005855/0.527, allocations: 3.666 MB / 0.509 GB, free: 83.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.527, allocations: 27.2 kB / 0.509 GB, free: 83.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.5271, allocations: 7.812 kB / 0.509 GB, free: 83.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.889e-05/0.5271, allocations: 11.95 kB / 0.509 GB, free: 83.67 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.01301/0.5401, allocations: 9.464 MB / 0.5183 GB, free: 79.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.5401, allocations: 0 / 0.5183 GB, free: 79.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/0.5417, allocations: 435.2 kB / 0.5187 GB, free: 79.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001455/0.5432, allocations: 0.6752 MB / 0.5193 GB, free: 79.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/0.5434, allocations: 57.34 kB / 0.5194 GB, free: 79.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006352/0.5497, allocations: 7.485 MB / 0.5267 GB, free: 72.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002445/0.5522, allocations: 3.016 MB / 0.5296 GB, free: 69.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007316/0.5595, allocations: 5.424 MB / 0.5349 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.5606, allocations: 0.6533 MB / 0.5356 GB, free: 63.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003007/0.5609, allocations: 48.47 kB / 0.5356 GB, free: 63.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.5622, allocations: 171.8 kB / 0.5358 GB, free: 63.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003562/0.5626, allocations: 201.3 kB / 0.536 GB, free: 63.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.5627, allocations: 63.97 kB / 0.536 GB, free: 63.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001882/0.5646, allocations: 1.555 MB / 0.5376 GB, free: 61.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5646, allocations: 3.938 kB / 0.5376 GB, free: 61.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00212/0.5668, allocations: 0.7745 MB / 0.5383 GB, free: 60.84 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.001073/0.5679, allocations: 0.5272 MB / 0.5388 GB, free: 60.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005156/0.573, allocations: 3.709 MB / 0.5425 GB, free: 56.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.5731, allocations: 4 kB / 0.5425 GB, free: 56.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003015/0.5761, allocations: 2.266 MB / 0.5447 GB, free: 54.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003029/0.5791, allocations: 0.6284 MB / 0.5453 GB, free: 53.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/0.5899, allocations: 8.531 MB / 0.5536 GB, free: 45.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001614/0.5915, allocations: 2.358 MB / 0.5559 GB, free: 42.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.5926, allocations: 227.3 kB / 0.5561 GB, free: 42.55 MB / 378.7 MB Notification: Performance of SimCode: time 1.542e-06/0.5926, allocations: 0 / 0.5561 GB, free: 42.55 MB / 378.7 MB Notification: Performance of Templates: time 0.1197/0.7123, allocations: 115.8 MB / 0.6692 GB, free: 6.688 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.makefile (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 & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat","/var/lib/jenkins/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