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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 182.2 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.178/1.178, allocations: 221.4 MB / 229.9 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009055/0.0009055, allocations: 100.6 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.227e-05/1.239e-05, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1953, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2648/0.4602, allocations: 124.3 MB / 0.4992 GB, free: 81.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.4604, allocations: 88.33 kB / 0.4993 GB, free: 81.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1815/0.642, allocations: 78.42 MB / 0.5759 GB, free: 23.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003046/0.6423, allocations: 87.88 kB / 0.5759 GB, free: 23.5 MB / 378.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.01002/0.6523, allocations: 3.313 MB / 0.5792 GB, free: 20.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.6524, allocations: 8.031 kB / 0.5792 GB, free: 20.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00234/0.6547, allocations: 471 kB / 0.5796 GB, free: 19.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005377/0.6602, allocations: 2.571 MB / 0.5821 GB, free: 17.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004265/0.6606, allocations: 263.2 kB / 0.5824 GB, free: 16.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000892/0.6615, allocations: 191.9 kB / 0.5826 GB, free: 16.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006491/0.668, allocations: 3.332 MB / 0.5858 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007892/0.6759, allocations: 3.673 MB / 0.5894 GB, free: 9.469 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001207/0.6761, allocations: 15.89 kB / 0.5894 GB, free: 9.453 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003384/0.6765, allocations: 4 kB / 0.5894 GB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/0.6766, allocations: 138.1 kB / 0.5896 GB, free: 9.312 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02516/0.7017, allocations: 13.42 MB / 0.6027 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002638/0.7044, allocations: 1.333 MB / 0.604 GB, free: 10.31 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002105/0.7066, allocations: 1.206 MB / 0.6052 GB, free: 9.109 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004195/0.707, allocations: 232.1 kB / 0.6054 GB, free: 8.852 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001991/0.709, allocations: 1.205 MB / 0.6066 GB, free: 7.617 MB / 394.7 MB Notification: Performance of pre-optimization done (n=197): time 4.258e-06/0.709, allocations: 0 / 0.6066 GB, free: 7.617 MB / 394.7 MB Notification: Performance of matching and sorting (n=250): time 0.02167/0.7307, allocations: 9.48 MB / 0.6158 GB, free: 14.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.7309, allocations: 192.1 kB / 0.616 GB, free: 13.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003226/0.7341, allocations: 1.654 MB / 0.6176 GB, free: 12.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006113/0.7347, allocations: 45.69 kB / 0.6177 GB, free: 12.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.7359, allocations: 1.152 MB / 0.6188 GB, free: 10.99 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001162/0.7371, allocations: 0.8006 MB / 0.6196 GB, free: 10.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001869/0.7373, allocations: 0 / 0.6196 GB, free: 10.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002253/0.7375, allocations: 411.7 kB / 0.62 GB, free: 9.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002178/0.7397, allocations: 1.255 MB / 0.6212 GB, free: 8.512 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002741/0.7425, allocations: 1.864 MB / 0.623 GB, free: 6.395 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002836/0.7453, allocations: 1.526 MB / 0.6245 GB, free: 4.848 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.477e-05/0.7454, allocations: 4 kB / 0.6245 GB, free: 4.844 MB / 410.7 MB Notification: Performance of matching and sorting (n=353) (initialization): time 0.007301/0.7527, allocations: 3.673 MB / 0.6281 GB, free: 1.113 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.7528, allocations: 11.91 kB / 0.6281 GB, free: 1.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.197e-05/0.7528, allocations: 16.41 kB / 0.6281 GB, free: 1.086 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001363/0.7542, allocations: 499.1 kB / 0.6286 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003448/0.7576, allocations: 0.6826 MB / 0.6293 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005446/0.7631, allocations: 4.244 MB / 0.6334 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002722/0.7659, allocations: 123.8 kB / 0.6335 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005977/0.7665, allocations: 120 kB / 0.6336 GB, free: 11.19 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gearbox.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gearbox.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (322): * Single equations (assignments): 316 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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.0006205/0.7671, allocations: 183.1 kB / 0.6338 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006577/0.7678, allocations: 248.9 kB / 0.634 GB, free: 10.76 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00663/0.7745, allocations: 3.418 MB / 0.6374 GB, free: 7.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.51e-05/0.7745, allocations: 24 kB / 0.6374 GB, free: 7.297 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.7745, allocations: 7.984 kB / 0.6374 GB, free: 7.289 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.361e-05/0.7746, allocations: 11.95 kB / 0.6374 GB, free: 7.277 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01836/0.793, allocations: 8.952 MB / 0.6462 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.793, allocations: 0 / 0.6462 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002484/0.7955, allocations: 487.3 kB / 0.6466 GB, free: 13.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001843/0.7974, allocations: 0.655 MB / 0.6473 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003657/0.7978, allocations: 19.97 kB / 0.6473 GB, free: 13.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008491/0.8063, allocations: 7.132 MB / 0.6543 GB, free: 5.617 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003828/0.8101, allocations: 3.095 MB / 0.6573 GB, free: 2.402 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1327/0.9428, allocations: 5.342 MB / 0.6625 GB, free: 130.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/0.9444, allocations: 0.6267 MB / 0.6631 GB, free: 130.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006244/0.945, allocations: 17.19 kB / 0.6631 GB, free: 130.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001673/0.9467, allocations: 110.3 kB / 0.6632 GB, free: 130.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003244/0.9471, allocations: 152.7 kB / 0.6634 GB, free: 130.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000168/0.9472, allocations: 77.31 kB / 0.6634 GB, free: 130.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001746/0.949, allocations: 1.234 MB / 0.6647 GB, free: 129.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002906/0.9519, allocations: 0.7145 MB / 0.6653 GB, free: 129.9 MB / 442.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 202 * 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%) 11} * Non-linear torn systems: 1 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009826/0.9529, allocations: 0.5381 MB / 0.6659 GB, free: 129.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004614/0.9575, allocations: 3.49 MB / 0.6693 GB, free: 129.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.9576, allocations: 0 / 0.6693 GB, free: 129.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002944/0.9605, allocations: 2.071 MB / 0.6713 GB, free: 129 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/0.9634, allocations: 470.3 kB / 0.6718 GB, free: 129 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01649/0.9799, allocations: 5.917 MB / 0.6775 GB, free: 127.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004797/0.9848, allocations: 2.64 MB / 0.6801 GB, free: 127 MB / 442.7 MB Notification: Performance of SimCode: time 1.693e-06/0.9848, allocations: 0 / 0.6801 GB, free: 127 MB / 442.7 MB Notification: Performance of Templates: time 0.08303/1.068, allocations: 40.26 MB / 0.7194 GB, free: 125.1 MB / 442.7 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches