Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009278/0.0009278, allocations: 200.1 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.6 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007673/0.0007673, allocations: 97.8 kB / 296.8 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002534/0.0002535, allocations: 11.94 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.248, allocations: 51.28 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.009918/0.258, allocations: 12.11 MB / 420.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009025/0.267, allocations: 5.066 MB / 425.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002968/0.2701, allocations: 75.62 kB / 425.3 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002639/0.2727, allocations: 0.7492 MB / 426 MB, free: 9.668 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004102/0.2769, allocations: 0.9503 MB / 427 MB, free: 8.715 MB / 298.7 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.002708/0.2796, allocations: 0.6016 MB / 427.6 MB, free: 8.113 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005602/0.2852, allocations: 4.184 MB / 431.8 MB, free: 3.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004279/0.2895, allocations: 2.629 MB / 434.4 MB, free: 1.211 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002593/0.2921, allocations: 1.366 MB / 435.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003681/0.2958, allocations: 1.825 MB / 437.6 MB, free: 14.01 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001206/0.2971, allocations: 208 kB / 437.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002183/0.2993, allocations: 491.6 kB / 438.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001773/0.3011, allocations: 0.9851 MB / 439.3 MB, free: 12.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003082/0.3042, allocations: 1.763 MB / 441 MB, free: 10.56 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006673/0.3109, allocations: 6.139 MB / 447.2 MB, free: 4.402 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3109, allocations: 0 / 447.2 MB, free: 4.402 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3109, allocations: 0 / 447.2 MB, free: 4.402 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002164/0.3111, allocations: 0 / 447.2 MB, free: 4.402 MB / 314.7 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.009241/0.3204, allocations: 3.674 MB / 450.8 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.3205, allocations: 8.031 kB / 450.8 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00198/0.3224, allocations: 460 kB / 451.3 MB, free: 204 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0044/0.3269, allocations: 2.412 MB / 453.7 MB, free: 13.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00067/0.3276, allocations: 427.2 kB / 454.1 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006019/0.3282, allocations: 319.8 kB / 454.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007597/0.3358, allocations: 4.265 MB / 458.7 MB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.988e-05/0.3359, allocations: 7.906 kB / 458.7 MB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002891/0.3362, allocations: 124 kB / 458.8 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001466/0.3363, allocations: 150.1 kB / 459 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007288/0.3436, allocations: 3.865 MB / 462.8 MB, free: 4.492 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02291/0.3666, allocations: 14.26 MB / 477.1 MB, free: 5.848 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003415/0.37, allocations: 2.169 MB / 479.3 MB, free: 3.598 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002202/0.3723, allocations: 1.306 MB / 480.6 MB, free: 2.293 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003257/0.3726, allocations: 224 kB / 480.8 MB, free: 2.039 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002148/0.3748, allocations: 1.326 MB / 482.1 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of pre-optimization done (n=186): time 4.028e-06/0.3748, allocations: 0 / 482.1 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of matching and sorting (n=234): time 0.02774/0.4025, allocations: 13.02 MB / 495.1 MB, free: 3.566 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00352/0.4061, allocations: 3.255 MB / 498.4 MB, free: 136 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00385/0.41, allocations: 2.295 MB / 0.489 GB, free: 13.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005478/0.4105, allocations: 73.7 kB / 0.489 GB, free: 13.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001455/0.412, allocations: 1.505 MB / 0.4905 GB, free: 12.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008048/0.4128, allocations: 0.7856 MB / 0.4913 GB, free: 11.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.413, allocations: 52 kB / 0.4913 GB, free: 11.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.4132, allocations: 408 kB / 0.4917 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002221/0.4154, allocations: 1.294 MB / 0.493 GB, free: 9.656 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002645/0.4181, allocations: 1.933 MB / 0.4949 GB, free: 7.461 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005251/0.4233, allocations: 3.296 MB / 0.4981 GB, free: 3.891 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/0.4234, allocations: 4 kB / 0.4981 GB, free: 3.887 MB / 378.7 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.1898/0.6132, allocations: 3.874 MB / 0.5019 GB, free: 87.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.232e-05/0.6133, allocations: 12.09 kB / 0.5019 GB, free: 87.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.978e-05/0.6133, allocations: 20.16 kB / 0.5019 GB, free: 87.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001826/0.6152, allocations: 0.5381 MB / 0.5024 GB, free: 87.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003186/0.6184, allocations: 0.6672 MB / 0.5031 GB, free: 87.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005428/0.6238, allocations: 4.674 MB / 0.5076 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002587/0.6264, allocations: 202.9 kB / 0.5078 GB, free: 84.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003687/0.6268, allocations: 107.6 kB / 0.5079 GB, free: 84.1 MB / 378.7 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.002389/0.6292, allocations: 1.095 MB / 0.509 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006446/0.6299, allocations: 257.8 kB / 0.5092 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00652/0.6364, allocations: 3.665 MB / 0.5128 GB, free: 82.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.744e-05/0.6365, allocations: 22.41 kB / 0.5128 GB, free: 82.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.6365, allocations: 6.594 kB / 0.5129 GB, free: 82.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.095e-05/0.6365, allocations: 11.44 kB / 0.5129 GB, free: 82.05 MB / 378.7 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.01465/0.6512, allocations: 9.458 MB / 0.5221 GB, free: 77.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.6512, allocations: 3.688 kB / 0.5221 GB, free: 77.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/0.6528, allocations: 436.4 kB / 0.5225 GB, free: 77.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001602/0.6545, allocations: 0.6748 MB / 0.5232 GB, free: 77.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000161/0.6546, allocations: 55.31 kB / 0.5232 GB, free: 76.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006951/0.6616, allocations: 7.502 MB / 0.5306 GB, free: 69.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002609/0.6642, allocations: 3.015 MB / 0.5335 GB, free: 66.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008008/0.6723, allocations: 5.415 MB / 0.5388 GB, free: 61.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/0.6736, allocations: 0.657 MB / 0.5394 GB, free: 60.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003377/0.674, allocations: 55.92 kB / 0.5395 GB, free: 60.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/0.6753, allocations: 159.8 kB / 0.5396 GB, free: 60.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004189/0.6757, allocations: 199.9 kB / 0.5398 GB, free: 60.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.6759, allocations: 67.97 kB / 0.5399 GB, free: 60.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002166/0.678, allocations: 1.555 MB / 0.5414 GB, free: 58.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.678, allocations: 0 / 0.5414 GB, free: 58.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002365/0.6804, allocations: 0.7794 MB / 0.5422 GB, free: 57.7 MB / 378.7 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.001172/0.6816, allocations: 0.5651 MB / 0.5427 GB, free: 57.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006975/0.6886, allocations: 3.704 MB / 0.5463 GB, free: 53.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.6886, allocations: 0 / 0.5463 GB, free: 53.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003753/0.6924, allocations: 2.271 MB / 0.5486 GB, free: 51.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003453/0.6959, allocations: 0.6117 MB / 0.5492 GB, free: 50.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.7068, allocations: 8.536 MB / 0.5575 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/0.7084, allocations: 2.362 MB / 0.5598 GB, free: 39.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.7094, allocations: 223.3 kB / 0.56 GB, free: 39.39 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.7095, allocations: 0 / 0.56 GB, free: 39.39 MB / 378.7 MB Notification: Performance of Templates: time 0.1351/0.8446, allocations: 115.8 MB / 0.6731 GB, free: 3.535 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches