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: 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/ModelicaServices trunk/package.mo): time 0.001356/0.001356, allocations: 115.7 kB / 18.45 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001443/0.001443, allocations: 217.9 kB / 19.4 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 63.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3094, allocations: 50.54 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01573/0.3252, allocations: 13.67 MB / 423.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01197/0.3372, allocations: 5.365 MB / 429 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003195/0.3404, allocations: 83.69 kB / 429.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003677/0.3442, allocations: 0.9621 MB / 430 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005172/0.3494, allocations: 1.173 MB / 431.2 MB, free: 12.25 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.003326/0.3527, allocations: 0.9751 MB / 432.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006782/0.3595, allocations: 4.335 MB / 436.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005483/0.3651, allocations: 3.16 MB / 439.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003485/0.3686, allocations: 1.912 MB / 441.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004763/0.3734, allocations: 2.334 MB / 443.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002277/0.3757, allocations: 0.5703 MB / 444.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00306/0.3788, allocations: 0.8745 MB / 445.4 MB, free: 14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002774/0.3816, allocations: 1.414 MB / 446.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004862/0.3864, allocations: 2.279 MB / 449.1 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009982/0.3964, allocations: 7.525 MB / 456.6 MB, free: 2.742 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.3965, allocations: 7.984 kB / 456.6 MB, free: 2.734 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3965, allocations: 0 / 456.6 MB, free: 2.734 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001854/0.3967, allocations: 0 / 456.6 MB, free: 2.734 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.01172/0.4084, allocations: 4.395 MB / 461 MB, free: 14.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.4085, allocations: 12.03 kB / 461 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00157/0.4101, allocations: 456 kB / 461.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00444/0.4145, allocations: 2.471 MB / 463.9 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003478/0.4149, allocations: 343.2 kB / 464.2 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005456/0.4155, allocations: 315.8 kB / 464.6 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008062/0.4235, allocations: 4.261 MB / 468.8 MB, free: 6.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.728e-05/0.4237, allocations: 15.89 kB / 468.8 MB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003112/0.424, allocations: 123.9 kB / 468.9 MB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001533/0.4241, allocations: 154.1 kB / 469.1 MB, free: 6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007054/0.4312, allocations: 3.826 MB / 472.9 MB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02241/0.4536, allocations: 14.04 MB / 487 MB, free: 3.738 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003548/0.4572, allocations: 2.138 MB / 489.1 MB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002304/0.4596, allocations: 1.263 MB / 490.4 MB, free: 260 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003498/0.4599, allocations: 224.2 kB / 490.6 MB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002254/0.4622, allocations: 1.295 MB / 491.9 MB, free: 14.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 4.449e-06/0.4622, allocations: 0 / 491.9 MB, free: 14.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.02951/0.4917, allocations: 12.8 MB / 0.4929 GB, free: 1.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004025/0.4958, allocations: 3.346 MB / 0.4961 GB, free: 14.24 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003842/0.4997, allocations: 2.31 MB / 0.4984 GB, free: 11.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005821/0.5003, allocations: 81.69 kB / 0.4985 GB, free: 11.81 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001504/0.5018, allocations: 1.501 MB / 0.4999 GB, free: 10.29 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009712/0.5028, allocations: 0.7818 MB / 0.5007 GB, free: 9.496 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007981/0.5036, allocations: 489.3 kB / 0.5012 GB, free: 9.012 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.176e-05/0.5037, allocations: 301.1 kB / 0.5014 GB, free: 8.715 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002168/0.5059, allocations: 1.286 MB / 0.5027 GB, free: 7.426 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002624/0.5085, allocations: 1.929 MB / 0.5046 GB, free: 5.234 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004858/0.5134, allocations: 3.296 MB / 0.5078 GB, free: 1.664 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/0.5134, allocations: 4 kB / 0.5078 GB, free: 1.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007023/0.5204, allocations: 3.881 MB / 0.5116 GB, free: 13.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.5205, allocations: 22.75 kB / 0.5116 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.728e-05/0.5206, allocations: 16.34 kB / 0.5116 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/0.5219, allocations: 0.5538 MB / 0.5122 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002594/0.5245, allocations: 0.6474 MB / 0.5128 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005834/0.5304, allocations: 5.046 MB / 0.5177 GB, free: 7.137 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002695/0.5331, allocations: 195.7 kB / 0.5179 GB, free: 6.945 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/0.5334, allocations: 104 kB / 0.518 GB, free: 6.844 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.002314/0.5357, allocations: 1.09 MB / 0.5191 GB, free: 5.742 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006559/0.5364, allocations: 260.9 kB / 0.5193 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007292/0.5437, allocations: 3.636 MB / 0.5229 GB, free: 1.816 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-05/0.5438, allocations: 28 kB / 0.5229 GB, free: 1.789 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.5438, allocations: 0 / 0.5229 GB, free: 1.789 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.302e-05/0.5438, allocations: 11.95 kB / 0.5229 GB, free: 1.777 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.01715/0.561, allocations: 9.295 MB / 0.532 GB, free: 8.324 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.561, allocations: 0 / 0.532 GB, free: 8.324 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001873/0.5629, allocations: 427.7 kB / 0.5324 GB, free: 7.906 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001721/0.5646, allocations: 0.6786 MB / 0.5331 GB, free: 7.215 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001812/0.5648, allocations: 63.84 kB / 0.5331 GB, free: 7.152 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2595/0.8244, allocations: 8.132 MB / 0.5411 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004277/0.8287, allocations: 3.099 MB / 0.5441 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009433/0.8382, allocations: 5.372 MB / 0.5493 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/0.8399, allocations: 0.6304 MB / 0.55 GB, free: 117.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004634/0.8404, allocations: 54.62 kB / 0.55 GB, free: 117.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/0.842, allocations: 144 kB / 0.5501 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005899/0.8426, allocations: 192.9 kB / 0.5503 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/0.8427, allocations: 68.5 kB / 0.5504 GB, free: 117.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002633/0.8454, allocations: 1.576 MB / 0.5519 GB, free: 117.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8454, allocations: 0 / 0.5519 GB, free: 117.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002542/0.8479, allocations: 0.7766 MB / 0.5527 GB, free: 117 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.001349/0.8493, allocations: 0.5696 MB / 0.5532 GB, free: 116.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005212/0.8545, allocations: 3.697 MB / 0.5569 GB, free: 115.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/0.8545, allocations: 0 / 0.5569 GB, free: 115.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003044/0.8576, allocations: 2.244 MB / 0.559 GB, free: 113.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003029/0.8606, allocations: 0.6506 MB / 0.5597 GB, free: 113.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/0.8713, allocations: 7.214 MB / 0.5667 GB, free: 106.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001583/0.8729, allocations: 2.364 MB / 0.569 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/0.8741, allocations: 226.6 kB / 0.5693 GB, free: 104.5 MB / 462.1 MB Notification: Performance of SimCode: time 8.61e-07/0.8741, allocations: 0 / 0.5693 GB, free: 104.5 MB / 462.1 MB Notification: Performance of Templates: time 0.09537/0.9694, allocations: 116.8 MB / 0.6833 GB, free: 3.738 MB / 478.1 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/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