Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 94.14 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002948, allocations: 6.562 kB / 300.7 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1049, allocations: 50.42 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01281/0.1177, allocations: 11.08 MB / 362.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00975/0.1275, allocations: 5.046 MB / 367.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002856/0.1304, allocations: 71.62 kB / 367.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002384/0.1328, allocations: 0.75 MB / 368.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003778/0.1366, allocations: 1.032 MB / 369.1 MB, free: 9.727 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.002047/0.1387, allocations: 0.6083 MB / 369.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005254/0.1439, allocations: 2.618 MB / 372.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003455/0.1474, allocations: 2.173 MB / 374.5 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.1498, allocations: 1.273 MB / 375.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003386/0.1532, allocations: 1.626 MB / 377.4 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007825/0.1541, allocations: 200 kB / 377.6 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001453/0.1555, allocations: 419.6 kB / 378 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001026/0.1566, allocations: 0.9346 MB / 379 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.1576, allocations: 0.7576 MB / 379.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006296/0.164, allocations: 6.011 MB / 385.7 MB, free: 9.023 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.164, allocations: 0 / 385.7 MB, free: 9.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.164, allocations: 3.938 kB / 385.7 MB, free: 9.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000215/0.1642, allocations: 0 / 385.7 MB, free: 9.02 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.01051/0.1747, allocations: 3.666 MB / 389.4 MB, free: 5.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.1748, allocations: 8.031 kB / 389.4 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002376/0.1772, allocations: 463 kB / 389.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005474/0.1827, allocations: 2.363 MB / 392.2 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008027/0.1835, allocations: 423.1 kB / 392.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009624/0.1845, allocations: 323.8 kB / 392.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009408/0.1939, allocations: 4.219 MB / 397.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001179/0.1941, allocations: 15.84 kB / 397.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003473/0.1945, allocations: 127.9 kB / 397.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000168/0.1946, allocations: 150.1 kB / 397.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008686/0.2033, allocations: 3.854 MB / 401.3 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02634/0.2297, allocations: 14.12 MB / 415.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00363/0.2334, allocations: 2.174 MB / 417.6 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004102/0.2338, allocations: 216.2 kB / 417.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002453/0.2363, allocations: 1.314 MB / 419.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=186): time 3.757e-06/0.2363, allocations: 4 kB / 419.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.2451/0.4814, allocations: 13.12 MB / 432.2 MB, free: 59.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003676/0.4851, allocations: 3.355 MB / 435.6 MB, free: 57.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003938/0.4891, allocations: 2.21 MB / 437.8 MB, free: 57.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004429/0.4895, allocations: 76.88 kB / 437.9 MB, free: 57.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001202/0.4907, allocations: 1.49 MB / 439.4 MB, free: 56.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007753/0.4915, allocations: 0.7836 MB / 440.2 MB, free: 55.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.4917, allocations: 55.59 kB / 440.2 MB, free: 55.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.4918, allocations: 414.8 kB / 440.6 MB, free: 55.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002125/0.4939, allocations: 1.292 MB / 441.9 MB, free: 54.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002097/0.496, allocations: 1.936 MB / 443.9 MB, free: 53.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001951/0.498, allocations: 1.549 MB / 445.4 MB, free: 52.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.498, allocations: 3.906 kB / 445.4 MB, free: 52.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.005631/0.5037, allocations: 3.882 MB / 449.3 MB, free: 51.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.5037, allocations: 18.27 kB / 449.3 MB, free: 51.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.969e-05/0.5038, allocations: 15.91 kB / 449.3 MB, free: 51.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/0.5049, allocations: 0.506 MB / 449.8 MB, free: 51.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/0.5072, allocations: 0.6628 MB / 450.5 MB, free: 51.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004306/0.5115, allocations: 4.742 MB / 455.2 MB, free: 47.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002066/0.5136, allocations: 201 kB / 455.4 MB, free: 47.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/0.5137, allocations: 105.4 kB / 455.5 MB, free: 47.37 MB / 350.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,$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.00187/0.5156, allocations: 1.09 MB / 456.6 MB, free: 46.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004618/0.5161, allocations: 254.9 kB / 456.9 MB, free: 46.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005361/0.5215, allocations: 3.671 MB / 460.5 MB, free: 42.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.5215, allocations: 20 kB / 460.6 MB, free: 42.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.5215, allocations: 6.312 kB / 460.6 MB, free: 42.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.19e-05/0.5215, allocations: 11.95 kB / 460.6 MB, free: 42.89 MB / 350.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.01486/0.5364, allocations: 9.373 MB / 469.9 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.5365, allocations: 4 kB / 470 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/0.5382, allocations: 432.4 kB / 470.4 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001505/0.5397, allocations: 0.625 MB / 471 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001986/0.5399, allocations: 55.92 kB / 471.1 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007519/0.5474, allocations: 7.678 MB / 478.7 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002805/0.5503, allocations: 3.114 MB / 481.8 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008194/0.5585, allocations: 5.546 MB / 487.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001784/0.5603, allocations: 0.6266 MB / 488 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005335/0.5609, allocations: 52 kB / 488.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001483/0.5624, allocations: 167.9 kB / 488.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004454/0.5628, allocations: 205.6 kB / 488.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001453/0.563, allocations: 63.97 kB / 488.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002264/0.5652, allocations: 1.504 MB / 490 MB, free: 12.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5652, allocations: 0 / 490 MB, free: 12.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003001/0.5683, allocations: 0.7718 MB / 490.8 MB, free: 11.96 MB / 350.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 (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.0008063/0.5691, allocations: 310.9 kB / 491.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006031/0.5751, allocations: 3.715 MB / 494.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.812e-06/0.5752, allocations: 0 / 494.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003524/0.5787, allocations: 2.278 MB / 497.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003275/0.582, allocations: 0.5732 MB / 497.6 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.5963, allocations: 8.422 MB / 0.4942 GB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002278/0.5986, allocations: 2.45 MB / 0.4966 GB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002214/0.6008, allocations: 0.5914 MB / 0.4972 GB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007017/0.6015, allocations: 199.4 kB / 0.4974 GB, free: 9.258 MB / 366.1 MB Notification: Performance of SimCode: time 9.61e-07/0.6015, allocations: 0 / 0.4974 GB, free: 9.258 MB / 366.1 MB Notification: Performance of Templates: time 0.07167/0.6732, allocations: 39.72 MB / 0.5362 GB, free: 1.801 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches