Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.NoiseExamples.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_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise") translateModel(Modelica.Blocks.Examples.NoiseExamples.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_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009062/0.0009065, allocations: 94.88 kB / 16.95 MB, free: 6.441 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.001085/0.001085, allocations: 181.2 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.84/1.84, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005236/0.0005242, allocations: 16 kB / 280.8 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1295, allocations: 47.58 MB / 328.4 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise): time 0.01432/0.1439, allocations: 11.98 MB / 340.3 MB, free: 8.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.1568, allocations: 4.932 MB / 345.3 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003785/0.1607, allocations: 63.69 kB / 345.3 MB, free: 3.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002747/0.1635, allocations: 0.7336 MB / 346.1 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004818/0.1683, allocations: 0.9398 MB / 347 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002677/0.171, allocations: 0.6045 MB / 347.6 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006545/0.1775, allocations: 4.089 MB / 351.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004804/0.1824, allocations: 2.129 MB / 353.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003749/0.1862, allocations: 1.342 MB / 355.2 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00434/0.1905, allocations: 1.806 MB / 357 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001657/0.1922, allocations: 208 kB / 357.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003183/0.1954, allocations: 459.6 kB / 357.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001539/0.197, allocations: 0.9812 MB / 358.6 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001579/0.1986, allocations: 0.7576 MB / 359.4 MB, free: 4.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007561/0.2061, allocations: 6.085 MB / 365.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.968e-06/0.2062, allocations: 0 / 365.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.2062, allocations: 8 kB / 365.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002526/0.2065, allocations: 0 / 365.5 MB, free: 14.8 MB / 318.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.009932/0.2164, allocations: 3.674 MB / 369.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.2165, allocations: 12.03 kB / 369.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002056/0.2185, allocations: 451.2 kB / 369.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005525/0.2241, allocations: 2.211 MB / 371.8 MB, free: 8.344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007194/0.2248, allocations: 415.2 kB / 372.2 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006383/0.2255, allocations: 315.9 kB / 372.5 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0099/0.2354, allocations: 4.25 MB / 376.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.369e-05/0.2356, allocations: 7.906 kB / 376.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003094/0.2359, allocations: 135.9 kB / 376.9 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001964/0.2361, allocations: 150.1 kB / 377 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2782/0.5143, allocations: 3.842 MB / 380.9 MB, free: 47.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04381/0.5582, allocations: 14.23 MB / 395.1 MB, free: 39.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004755/0.563, allocations: 2.181 MB / 397.3 MB, free: 37.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002978/0.566, allocations: 1.305 MB / 398.6 MB, free: 37.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004542/0.5665, allocations: 217.6 kB / 398.8 MB, free: 37.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003028/0.5696, allocations: 1.317 MB / 400.1 MB, free: 36.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=186): time 1.095e-05/0.5696, allocations: 3.938 kB / 400.1 MB, free: 36.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=234): time 0.03159/0.6012, allocations: 13 MB / 413.1 MB, free: 27.08 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003992/0.6053, allocations: 3.257 MB / 416.4 MB, free: 23.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005841/0.6112, allocations: 2.272 MB / 418.7 MB, free: 21.35 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008487/0.6121, allocations: 70.88 kB / 418.7 MB, free: 21.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001752/0.6138, allocations: 1.495 MB / 420.2 MB, free: 19.76 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001532/0.6154, allocations: 0.7886 MB / 421 MB, free: 18.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005755/0.616, allocations: 48.7 kB / 421.1 MB, free: 18.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003002/0.6163, allocations: 415.4 kB / 421.5 MB, free: 18.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002791/0.6191, allocations: 1.292 MB / 422.8 MB, free: 17.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002824/0.622, allocations: 1.933 MB / 424.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00344/0.6255, allocations: 1.553 MB / 426.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.701e-05/0.6255, allocations: 4 kB / 426.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009165/0.6347, allocations: 3.881 MB / 430.1 MB, free: 9.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.099e-05/0.6348, allocations: 12 kB / 430.1 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.486e-05/0.6349, allocations: 20.38 kB / 430.2 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/0.6363, allocations: 0.5 MB / 430.7 MB, free: 8.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002803/0.6392, allocations: 0.6591 MB / 431.3 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005475/0.6447, allocations: 4.651 MB / 436 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003233/0.648, allocations: 203.8 kB / 436.2 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005422/0.6485, allocations: 112 kB / 436.3 MB, free: 3.074 MB / 318.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.002736/0.6513, allocations: 1.082 MB / 437.4 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008442/0.6521, allocations: 260.8 kB / 437.6 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00742/0.6596, allocations: 3.659 MB / 441.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-05/0.6596, allocations: 20 kB / 441.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.705e-05/0.6597, allocations: 4 kB / 441.3 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.971e-05/0.6597, allocations: 11.95 kB / 441.3 MB, free: 13.99 MB / 334.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.02109/0.6808, allocations: 9.398 MB / 450.7 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-05/0.6809, allocations: 4.641 kB / 450.7 MB, free: 4.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001953/0.6829, allocations: 427.6 kB / 451.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001714/0.6846, allocations: 0.6297 MB / 451.8 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002798/0.6849, allocations: 55.97 kB / 451.8 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009422/0.6943, allocations: 7.485 MB / 459.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003984/0.6984, allocations: 3.011 MB / 462.3 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0121/0.7105, allocations: 5.423 MB / 467.7 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002312/0.7129, allocations: 0.6344 MB / 468.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001132/0.714, allocations: 55.88 kB / 468.4 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002282/0.7163, allocations: 167.8 kB / 468.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006126/0.717, allocations: 197.7 kB / 468.8 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000211/0.7172, allocations: 63.97 kB / 468.8 MB, free: 1.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004222/0.7214, allocations: 1.539 MB / 470.4 MB, free: 212 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7214, allocations: 0 / 470.4 MB, free: 212 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.004386/0.7258, allocations: 0.782 MB / 471.2 MB, free: 15.43 MB / 366.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.001262/0.7271, allocations: 341.5 kB / 471.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007806/0.7349, allocations: 3.71 MB / 475.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.735, allocations: 0 / 475.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004371/0.7394, allocations: 2.282 MB / 477.5 MB, free: 9.004 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004803/0.7442, allocations: 0.5929 MB / 478.1 MB, free: 8.406 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02016/0.7644, allocations: 8.436 MB / 486.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004148/0.7686, allocations: 2.389 MB / 488.9 MB, free: 13.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003199/0.7718, allocations: 0.5836 MB / 489.5 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001115/0.7729, allocations: 199.4 kB / 489.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.493e-06/0.773, allocations: 0 / 489.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of Templates: time 0.08348/0.8564, allocations: 40.55 MB / 0.5178 GB, free: 4.094 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/NoiseExamples/ActuatorWithNoise/ActuatorWithNoise.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches