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.001456/0.001456, allocations: 117.6 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001409, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 60.09 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.322, allocations: 50.54 MB / 409.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01827/0.3403, allocations: 13.68 MB / 422.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.3518, allocations: 5.362 MB / 428.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003867/0.3557, allocations: 83.62 kB / 428.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003468/0.3592, allocations: 1.021 MB / 429.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005413/0.3647, allocations: 1.227 MB / 430.6 MB, free: 12.17 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.003035/0.3677, allocations: 0.9707 MB / 431.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005979/0.3737, allocations: 4.346 MB / 435.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004587/0.3783, allocations: 3.156 MB / 439.1 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002925/0.3812, allocations: 1.908 MB / 441 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003938/0.3852, allocations: 2.335 MB / 443.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001336/0.3865, allocations: 0.5703 MB / 443.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002495/0.389, allocations: 0.8668 MB / 444.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00281/0.3919, allocations: 1.422 MB / 446.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003282/0.3952, allocations: 2.283 MB / 448.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007992/0.4032, allocations: 7.528 MB / 456 MB, free: 2.648 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.031e-05/0.4032, allocations: 0 / 456 MB, free: 2.648 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4032, allocations: 0 / 456 MB, free: 2.648 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002232/0.4035, allocations: 0 / 456 MB, free: 2.648 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.01051/0.414, allocations: 4.395 MB / 460.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.414, allocations: 8.031 kB / 460.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00135/0.4154, allocations: 460 kB / 460.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003747/0.4192, allocations: 2.471 MB / 463.3 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002956/0.4195, allocations: 339.2 kB / 463.7 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004596/0.4199, allocations: 327.8 kB / 464 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006661/0.4266, allocations: 4.257 MB / 468.2 MB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.683e-05/0.4267, allocations: 7.906 kB / 468.3 MB, free: 6.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002705/0.427, allocations: 128 kB / 468.4 MB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.4271, allocations: 146.1 kB / 468.5 MB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006341/0.4335, allocations: 3.834 MB / 472.4 MB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02021/0.4537, allocations: 14.04 MB / 486.4 MB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003279/0.457, allocations: 2.138 MB / 488.5 MB, free: 1.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002063/0.4591, allocations: 1.263 MB / 489.8 MB, free: 168 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003472/0.4595, allocations: 212.2 kB / 490 MB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002114/0.4616, allocations: 1.306 MB / 491.3 MB, free: 14.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 3.166e-06/0.4616, allocations: 0 / 491.3 MB, free: 14.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.02789/0.4895, allocations: 12.79 MB / 0.4923 GB, free: 1.691 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003633/0.4932, allocations: 3.35 MB / 0.4956 GB, free: 14.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003492/0.4967, allocations: 2.314 MB / 0.4978 GB, free: 11.81 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002235/0.4969, allocations: 77.69 kB / 0.4979 GB, free: 11.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001273/0.4982, allocations: 1.501 MB / 0.4994 GB, free: 10.21 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006643/0.4989, allocations: 0.7857 MB / 0.5001 GB, free: 9.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007759/0.4996, allocations: 485.3 kB / 0.5006 GB, free: 8.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.821e-05/0.4997, allocations: 301.1 kB / 0.5009 GB, free: 8.633 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002084/0.5018, allocations: 1.29 MB / 0.5021 GB, free: 7.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002526/0.5044, allocations: 1.933 MB / 0.504 GB, free: 5.145 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004955/0.5093, allocations: 3.288 MB / 0.5072 GB, free: 1.582 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.837e-05/0.5094, allocations: 8 kB / 0.5072 GB, free: 1.574 MB / 430.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.006864/0.5163, allocations: 3.881 MB / 0.511 GB, free: 13.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/0.5163, allocations: 15.94 kB / 0.511 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-05/0.5164, allocations: 16 kB / 0.5111 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/0.5178, allocations: 0.5501 MB / 0.5116 GB, free: 13.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002491/0.5203, allocations: 0.6513 MB / 0.5122 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005765/0.5261, allocations: 5.049 MB / 0.5172 GB, free: 7.055 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002451/0.5285, allocations: 195.7 kB / 0.5174 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002473/0.5288, allocations: 108 kB / 0.5175 GB, free: 6.758 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.002115/0.5309, allocations: 1.098 MB / 0.5185 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006335/0.5316, allocations: 256.8 kB / 0.5188 GB, free: 5.395 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006539/0.5381, allocations: 3.628 MB / 0.5223 GB, free: 1.734 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.229e-05/0.5381, allocations: 24 kB / 0.5223 GB, free: 1.711 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.5382, allocations: 4 kB / 0.5223 GB, free: 1.707 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.127e-05/0.5382, allocations: 12.23 kB / 0.5224 GB, free: 1.695 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.01568/0.5539, allocations: 9.303 MB / 0.5314 GB, free: 8.234 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.5539, allocations: 4.188 kB / 0.5314 GB, free: 8.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001779/0.5557, allocations: 423.3 kB / 0.5318 GB, free: 7.816 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001731/0.5574, allocations: 0.6824 MB / 0.5325 GB, free: 7.121 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001835/0.5576, allocations: 55.97 kB / 0.5326 GB, free: 7.066 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2966/0.8543, allocations: 8.122 MB / 0.5405 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003868/0.8582, allocations: 3.107 MB / 0.5435 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008623/0.8669, allocations: 5.373 MB / 0.5488 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/0.8682, allocations: 0.6343 MB / 0.5494 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003313/0.8685, allocations: 47.59 kB / 0.5494 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.8699, allocations: 144.6 kB / 0.5496 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004339/0.8703, allocations: 192.3 kB / 0.5498 GB, free: 117.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.8705, allocations: 72.62 kB / 0.5498 GB, free: 117.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002102/0.8726, allocations: 1.572 MB / 0.5514 GB, free: 117 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8726, allocations: 1.5 kB / 0.5514 GB, free: 117 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002216/0.8748, allocations: 0.776 MB / 0.5521 GB, free: 116.9 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.001231/0.8761, allocations: 0.5724 MB / 0.5527 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005139/0.8812, allocations: 3.693 MB / 0.5563 GB, free: 115.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.8812, allocations: 0 / 0.5563 GB, free: 115.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003007/0.8842, allocations: 2.245 MB / 0.5585 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.002714/0.887, allocations: 0.6633 MB / 0.5591 GB, free: 113.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009882/0.8969, allocations: 7.119 MB / 0.5661 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001661/0.8986, allocations: 2.385 MB / 0.5684 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00179/0.9004, allocations: 0.6137 MB / 0.569 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000651/0.901, allocations: 211.3 kB / 0.5692 GB, free: 104 MB / 462.1 MB Notification: Performance of SimCode: time 1.463e-06/0.901, allocations: 0 / 0.5692 GB, free: 104 MB / 462.1 MB Notification: Performance of Templates: time 0.05957/0.9606, allocations: 43.73 MB / 0.6119 GB, free: 60.62 MB / 462.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ActuatorWithNoise/ActuatorWithNoise.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches