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.001235/0.001235, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.0013/0.0013, allocations: 182.5 kB / 17.21 MB, free: 6.324 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.523/1.523, allocations: 223.3 MB / 241.2 MB, free: 344 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000417/0.0004173, allocations: 8 kB / 300.8 MB, free: 6.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1514, allocations: 50.41 MB / 351.2 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01591/0.1673, allocations: 12.03 MB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.1807, allocations: 4.904 MB / 368.2 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003068/0.1838, allocations: 75.69 kB / 368.2 MB, free: 2.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002792/0.1866, allocations: 0.7181 MB / 369 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004428/0.191, allocations: 0.947 MB / 369.9 MB, free: 1.301 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.002819/0.1939, allocations: 0.6006 MB / 370.5 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2616/0.4555, allocations: 4.065 MB / 374.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004424/0.46, allocations: 2.168 MB / 376.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004136/0.4641, allocations: 1.345 MB / 378.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005316/0.4695, allocations: 1.805 MB / 379.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001142/0.4707, allocations: 204.1 kB / 380.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002208/0.4729, allocations: 444.4 kB / 380.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001389/0.4743, allocations: 0.9732 MB / 381.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001884/0.4762, allocations: 0.763 MB / 382.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009437/0.4856, allocations: 6.072 MB / 388.3 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.081e-05/0.4857, allocations: 0 / 388.3 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.4857, allocations: 1.031 kB / 388.3 MB, free: 7.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000338/0.4861, allocations: 0 / 388.3 MB, free: 7.531 MB / 302.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.01478/0.5008, allocations: 3.696 MB / 392 MB, free: 5.391 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.562e-05/0.501, allocations: 9.031 kB / 392 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003129/0.5041, allocations: 446.7 kB / 392.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006408/0.5105, allocations: 2.321 MB / 394.8 MB, free: 4.273 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007622/0.5113, allocations: 430.1 kB / 395.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001199/0.5125, allocations: 326.5 kB / 395.5 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0107/0.5232, allocations: 4.252 MB / 399.8 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001308/0.5234, allocations: 10.23 kB / 399.8 MB, free: 2.461 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003387/0.5238, allocations: 121.9 kB / 399.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001748/0.524, allocations: 148.6 kB / 400.1 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009796/0.5338, allocations: 3.858 MB / 403.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03049/0.5643, allocations: 14.21 MB / 418.1 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004044/0.5684, allocations: 2.164 MB / 420.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002468/0.5709, allocations: 1.309 MB / 421.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003622/0.5713, allocations: 223.5 kB / 421.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002395/0.5737, allocations: 1.331 MB / 423.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=186): time 5e-06/0.5737, allocations: 0 / 423.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=234): time 0.03085/0.6046, allocations: 13.03 MB / 436.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004532/0.6092, allocations: 3.247 MB / 439.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004366/0.6136, allocations: 2.276 MB / 441.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006159/0.6142, allocations: 79.89 kB / 441.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001658/0.6159, allocations: 1.492 MB / 443.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008985/0.6168, allocations: 0.7882 MB / 444.1 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.617, allocations: 56 kB / 444.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003605/0.6173, allocations: 411.4 kB / 444.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002148/0.6195, allocations: 1.286 MB / 445.8 MB, free: 3.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002599/0.6221, allocations: 1.939 MB / 447.7 MB, free: 1.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002496/0.6246, allocations: 1.545 MB / 449.3 MB, free: 196 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/0.6246, allocations: 11.95 kB / 449.3 MB, free: 184 kB / 350.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.006773/0.6314, allocations: 3.877 MB / 453.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.6315, allocations: 16 kB / 453.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.823e-05/0.6315, allocations: 16 kB / 453.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001225/0.6327, allocations: 0.5034 MB / 453.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002557/0.6353, allocations: 0.667 MB / 454.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005659/0.641, allocations: 4.647 MB / 459 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002761/0.6438, allocations: 205.6 kB / 459.2 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/0.6441, allocations: 104 kB / 459.3 MB, free: 5.812 MB / 366.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.002676/0.6468, allocations: 1.092 MB / 460.4 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000688/0.6475, allocations: 260.8 kB / 460.7 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006632/0.6541, allocations: 3.659 MB / 464.3 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.163e-05/0.6542, allocations: 24 kB / 464.4 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.6542, allocations: 4.281 kB / 464.4 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.945e-05/0.6542, allocations: 7.969 kB / 464.4 MB, free: 0.7305 MB / 366.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.01737/0.6716, allocations: 9.412 MB / 473.8 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.338e-05/0.6716, allocations: 11.94 kB / 473.8 MB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001816/0.6735, allocations: 431.6 kB / 474.2 MB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001781/0.6753, allocations: 0.6355 MB / 474.9 MB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002302/0.6755, allocations: 55.97 kB / 474.9 MB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009466/0.685, allocations: 7.468 MB / 482.4 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003634/0.6886, allocations: 3.024 MB / 485.4 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/0.6991, allocations: 5.418 MB / 490.8 MB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002515/0.7017, allocations: 0.6383 MB / 491.5 MB, free: 4.941 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006946/0.7024, allocations: 44 kB / 491.5 MB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/0.704, allocations: 170.1 kB / 491.7 MB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004752/0.7045, allocations: 193.7 kB / 491.9 MB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/0.7046, allocations: 63.97 kB / 491.9 MB, free: 4.484 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003042/0.7077, allocations: 1.551 MB / 493.5 MB, free: 2.918 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7077, allocations: 4 kB / 493.5 MB, free: 2.914 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003928/0.7116, allocations: 0.7734 MB / 494.2 MB, free: 2.141 MB / 398.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.0009421/0.7126, allocations: 315.8 kB / 494.6 MB, free: 1.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006733/0.7193, allocations: 3.707 MB / 498.3 MB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.7194, allocations: 4 kB / 498.3 MB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003971/0.7233, allocations: 2.268 MB / 0.4888 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003765/0.7271, allocations: 0.6109 MB / 0.4894 GB, free: 11.15 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0153/0.7425, allocations: 8.428 MB / 0.4976 GB, free: 2.672 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002563/0.7451, allocations: 2.385 MB / 0.5 GB, free: 256 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002661/0.7478, allocations: 0.5953 MB / 0.5005 GB, free: 15.64 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007866/0.7486, allocations: 199.3 kB / 0.5007 GB, free: 15.46 MB / 430.1 MB Notification: Performance of SimCode: time 1.824e-06/0.7486, allocations: 4 kB / 0.5007 GB, free: 15.45 MB / 430.1 MB Notification: Performance of Templates: time 0.3174/1.066, allocations: 40.44 MB / 0.5402 GB, free: 147.7 MB / 446.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches