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.001642/0.001642, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002215/0.002215, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.682/2.682, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002317/0.002318, allocations: 67.84 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.458/0.4604, allocations: 50.55 MB / 409.9 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.02964/0.4901, allocations: 13.67 MB / 423.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0184/0.5085, allocations: 5.365 MB / 429 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004699/0.5133, allocations: 87.62 kB / 429.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005416/0.5188, allocations: 0.9544 MB / 430 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007386/0.5263, allocations: 1.173 MB / 431.2 MB, free: 12.38 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.005777/0.5321, allocations: 0.9788 MB / 432.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01012/0.5423, allocations: 4.335 MB / 436.5 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009054/0.5514, allocations: 3.164 MB / 439.7 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005527/0.557, allocations: 1.912 MB / 441.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007534/0.5646, allocations: 2.33 MB / 443.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002628/0.5672, allocations: 0.5664 MB / 444.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003885/0.5712, allocations: 0.8746 MB / 445.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003683/0.5749, allocations: 1.414 MB / 446.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006769/0.5817, allocations: 2.279 MB / 449 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01601/0.5978, allocations: 7.532 MB / 456.6 MB, free: 2.855 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.5979, allocations: 4 kB / 456.6 MB, free: 2.852 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.5979, allocations: 0 / 456.6 MB, free: 2.852 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000276/0.5982, allocations: 0 / 456.6 MB, free: 2.852 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.02256/0.6208, allocations: 4.391 MB / 461 MB, free: 14.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.017e-05/0.6209, allocations: 12.03 kB / 461 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003786/0.6247, allocations: 460 kB / 461.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009566/0.6343, allocations: 2.471 MB / 463.9 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006954/0.6351, allocations: 339.3 kB / 464.2 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001756/0.6368, allocations: 327.7 kB / 464.6 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01833/0.6552, allocations: 4.257 MB / 468.8 MB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003122/0.6556, allocations: 11.91 kB / 468.8 MB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001612/0.6572, allocations: 120 kB / 468.9 MB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003435/0.6576, allocations: 150.1 kB / 469.1 MB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01609/0.6738, allocations: 3.83 MB / 472.9 MB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04918/0.723, allocations: 14.04 MB / 487 MB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00717/0.7302, allocations: 2.145 MB / 489.1 MB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005163/0.7355, allocations: 1.259 MB / 490.4 MB, free: 380 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007237/0.7363, allocations: 216.2 kB / 490.6 MB, free: 124 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005344/0.7416, allocations: 1.306 MB / 491.9 MB, free: 14.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 9.608e-06/0.7417, allocations: 0 / 491.9 MB, free: 14.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.05917/0.8009, allocations: 12.8 MB / 0.4929 GB, free: 1.887 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006459/0.8074, allocations: 3.349 MB / 0.4961 GB, free: 14.35 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007813/0.8153, allocations: 2.306 MB / 0.4984 GB, free: 12.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007487/0.8161, allocations: 81.69 kB / 0.4985 GB, free: 11.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002354/0.8185, allocations: 1.497 MB / 0.4999 GB, free: 10.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001733/0.8203, allocations: 0.7818 MB / 0.5007 GB, free: 9.617 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002143/0.8225, allocations: 494 kB / 0.5012 GB, free: 9.129 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.8227, allocations: 301.1 kB / 0.5014 GB, free: 8.832 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00501/0.8277, allocations: 1.282 MB / 0.5027 GB, free: 7.547 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006128/0.8339, allocations: 1.937 MB / 0.5046 GB, free: 5.348 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01071/0.8447, allocations: 3.288 MB / 0.5078 GB, free: 1.785 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.348e-05/0.8447, allocations: 4 kB / 0.5078 GB, free: 1.781 MB / 430.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.01528/0.86, allocations: 3.881 MB / 0.5116 GB, free: 13.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.358e-05/0.8602, allocations: 19.88 kB / 0.5116 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.264e-05/0.8602, allocations: 20.34 kB / 0.5116 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002872/0.8631, allocations: 0.5537 MB / 0.5122 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005775/0.869, allocations: 0.6435 MB / 0.5128 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.8796, allocations: 5.046 MB / 0.5177 GB, free: 7.258 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0045/0.8842, allocations: 195.7 kB / 0.5179 GB, free: 7.066 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008029/0.8851, allocations: 112 kB / 0.518 GB, free: 6.957 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.004221/0.8893, allocations: 1.094 MB / 0.5191 GB, free: 5.852 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0013/0.8906, allocations: 260.8 kB / 0.5193 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01338/0.904, allocations: 3.628 MB / 0.5229 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.732e-05/0.9041, allocations: 20 kB / 0.5229 GB, free: 1.914 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/0.9042, allocations: 4 kB / 0.5229 GB, free: 1.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.444e-05/0.9042, allocations: 11.95 kB / 0.5229 GB, free: 1.898 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.03402/0.9383, allocations: 9.303 MB / 0.532 GB, free: 8.438 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.638e-05/0.9383, allocations: 3.984 kB / 0.532 GB, free: 8.434 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003586/0.9419, allocations: 423.6 kB / 0.5324 GB, free: 8.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003257/0.9452, allocations: 0.6786 MB / 0.5331 GB, free: 7.328 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005946/0.9459, allocations: 51.97 kB / 0.5331 GB, free: 7.277 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3728/1.319, allocations: 8.133 MB / 0.5411 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006301/1.325, allocations: 3.103 MB / 0.5441 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.015/1.34, allocations: 5.369 MB / 0.5493 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002376/1.343, allocations: 0.6348 MB / 0.55 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001017/1.344, allocations: 51.72 kB / 0.55 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002686/1.346, allocations: 143.1 kB / 0.5501 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007998/1.347, allocations: 189.5 kB / 0.5503 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002865/1.347, allocations: 78.02 kB / 0.5504 GB, free: 117.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004791/1.352, allocations: 1.573 MB / 0.5519 GB, free: 117.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.433e-06/1.352, allocations: 0 / 0.5519 GB, free: 117.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005322/1.358, allocations: 0.7755 MB / 0.5527 GB, free: 117.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.002208/1.36, allocations: 0.5693 MB / 0.5532 GB, free: 116.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009067/1.369, allocations: 3.693 MB / 0.5569 GB, free: 115.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/1.369, allocations: 0 / 0.5569 GB, free: 115.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006626/1.376, allocations: 2.241 MB / 0.559 GB, free: 113.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005982/1.382, allocations: 0.6595 MB / 0.5597 GB, free: 113.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0196/1.401, allocations: 7.218 MB / 0.5667 GB, free: 106.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003236/1.405, allocations: 2.361 MB / 0.569 GB, free: 104.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/1.407, allocations: 226.5 kB / 0.5693 GB, free: 104.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.723e-06/1.407, allocations: 2.516 kB / 0.5693 GB, free: 104.7 MB / 462.1 MB Notification: Performance of Templates: time 0.1835/1.59, allocations: 117.2 MB / 0.6837 GB, free: 3.539 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