Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MagLev_MagLev.Examples.Continuous.SpeedControl.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo", uses=false) Using package MagLev with version 2.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/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) 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(MagLev.Examples.Continuous.SpeedControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.SpeedControl") translateModel(MagLev.Examples.Continuous.SpeedControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.SpeedControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007741/0.007741, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.308/1.308, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.1364/0.1364, allocations: 4.212 MB / 295.6 MB, free: 4.156 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003232, allocations: 8 kB / 357.9 MB, free: 2.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1022, allocations: 51.44 MB / 409.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.SpeedControl): time 0.006107/0.1083, allocations: 5.889 MB / 415.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003677/0.112, allocations: 2.291 MB / 417.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004888/0.1126, allocations: 19.94 kB / 417.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007562/0.1133, allocations: 292.7 kB / 417.8 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000559/0.1139, allocations: 250.2 kB / 418 MB, free: 6.305 MB / 350.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.0009145/0.1148, allocations: 435.5 kB / 418.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.116, allocations: 1.348 MB / 419.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008279/0.1168, allocations: 0.6826 MB / 420.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004182/0.1173, allocations: 425.8 kB / 420.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008357/0.1181, allocations: 0.5028 MB / 421.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.1182, allocations: 60 kB / 421.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003066/0.1185, allocations: 159.8 kB / 421.6 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.1187, allocations: 210.9 kB / 421.8 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004455/0.1192, allocations: 0.5803 MB / 422.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.1204, allocations: 1.576 MB / 424 MB, free: 292 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1204, allocations: 0 / 424 MB, free: 292 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1204, allocations: 0 / 424 MB, free: 292 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.1204, allocations: 0 / 424 MB, free: 292 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.1823/0.3027, allocations: 1.354 MB / 425.3 MB, free: 45.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3028, allocations: 9.094 kB / 425.3 MB, free: 45.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004359/0.3032, allocations: 152.9 kB / 425.5 MB, free: 45.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009494/0.3042, allocations: 0.7333 MB / 426.2 MB, free: 45.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.501e-05/0.3043, allocations: 78.88 kB / 426.3 MB, free: 45.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.3044, allocations: 102.5 kB / 426.4 MB, free: 45.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.3059, allocations: 0.9801 MB / 427.4 MB, free: 45.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.3059, allocations: 0 / 427.4 MB, free: 45.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.56e-05/0.306, allocations: 40.84 kB / 427.4 MB, free: 45.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.707e-05/0.3061, allocations: 23.12 kB / 427.4 MB, free: 45.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.3072, allocations: 0.6799 MB / 428.1 MB, free: 45.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005402/0.3126, allocations: 3.676 MB / 431.8 MB, free: 43.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.314, allocations: 0.6956 MB / 432.5 MB, free: 43.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003747/0.3144, allocations: 233.6 kB / 432.7 MB, free: 43.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.3144, allocations: 10.78 kB / 432.7 MB, free: 43.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005222/0.315, allocations: 329.5 kB / 433.1 MB, free: 43.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.903e-06/0.315, allocations: 0 / 433.1 MB, free: 43.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001322/0.3163, allocations: 0.6963 MB / 433.7 MB, free: 42.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.3164, allocations: 90.23 kB / 433.8 MB, free: 42.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009289/0.3173, allocations: 0.851 MB / 434.7 MB, free: 42.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.513e-05/0.3174, allocations: 47.52 kB / 434.7 MB, free: 42.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003099/0.3177, allocations: 0.5357 MB / 435.3 MB, free: 42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.3178, allocations: 179.7 kB / 435.4 MB, free: 41.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.326e-05/0.3179, allocations: 66.62 kB / 435.5 MB, free: 41.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.828e-05/0.3179, allocations: 334.4 kB / 435.8 MB, free: 41.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004131/0.3184, allocations: 248 kB / 436.1 MB, free: 41.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000452/0.3188, allocations: 399.3 kB / 436.5 MB, free: 41.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008425/0.3197, allocations: 0.6274 MB / 437.1 MB, free: 40.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3197, allocations: 0 / 437.1 MB, free: 40.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001196/0.3209, allocations: 0.7894 MB / 437.9 MB, free: 40.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.71e-05/0.321, allocations: 219.4 kB / 438.1 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.547e-06/0.321, allocations: 3.438 kB / 438.1 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.321, allocations: 8.938 kB / 438.1 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006258/0.3217, allocations: 171.4 kB / 438.3 MB, free: 40.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.3217, allocations: 10.47 kB / 438.3 MB, free: 40.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005238/0.3222, allocations: 87.44 kB / 438.4 MB, free: 40.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/0.3223, allocations: 23.31 kB / 438.4 MB, free: 40.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.58e-06/0.3223, allocations: 3.812 kB / 438.4 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009255/0.3232, allocations: 0.639 MB / 439 MB, free: 39.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3232, allocations: 7.531 kB / 439 MB, free: 39.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.852e-06/0.3232, allocations: 9.594 kB / 439.1 MB, free: 39.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005471/0.3238, allocations: 164.3 kB / 439.2 MB, free: 39.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.3238, allocations: 13.36 kB / 439.2 MB, free: 39.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004449/0.3243, allocations: 71.52 kB / 439.3 MB, free: 39.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.571e-05/0.3243, allocations: 30.19 kB / 439.3 MB, free: 39.76 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,coil.hallSensor.globalSeed.seed,coil.hallSensor.uniformNoise.actualGlobalSeed,coil.hallSensor.uniformNoise.localSeed,coil.hallSensor.globalSeed.id_impure,coil.hallSensor.uniformNoise.r_raw,$PRE.coil.hallSensor.uniformNoise.r_raw,coil.hallSensor.uniformNoise.r,$PRE.coil.hallSensor.uniformNoise.r,coil.hallSensor.uniformNoise.state[4],$PRE.coil.hallSensor.uniformNoise.state[4],coil.hallSensor.uniformNoise.state[3],$PRE.coil.hallSensor.uniformNoise.state[3],coil.hallSensor.uniformNoise.state[2],$PRE.coil.hallSensor.uniformNoise.state[2],coil.hallSensor.uniformNoise.state[1],$PRE.coil.hallSensor.uniformNoise.state[1],converter.hBridge.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000391/0.3247, allocations: 350.9 kB / 439.7 MB, free: 39.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.3248, allocations: 89.22 kB / 439.8 MB, free: 39.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009855/0.3258, allocations: 0.579 MB / 440.3 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3258, allocations: 10.59 kB / 440.3 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3258, allocations: 0.6562 kB / 440.3 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3258, allocations: 3.375 kB / 440.4 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002104/0.3279, allocations: 1.57 MB / 441.9 MB, free: 38.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.328, allocations: 3.828 kB / 441.9 MB, free: 38.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004668/0.3284, allocations: 100.5 kB / 442 MB, free: 38.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.3284, allocations: 4 kB / 442 MB, free: 38.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.323e-05/0.3285, allocations: 11.28 kB / 442 MB, free: 38.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.3285, allocations: 4.859 kB / 442 MB, free: 38.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3285, allocations: 1.219 kB / 442 MB, free: 38.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.3298, allocations: 0.8971 MB / 442.9 MB, free: 37.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.3299, allocations: 182.5 kB / 443.1 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.3301, allocations: 14.12 kB / 443.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004192/0.3305, allocations: 33.3 kB / 443.2 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.085e-05/0.3306, allocations: 36.73 kB / 443.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-05/0.3306, allocations: 13.31 kB / 443.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006204/0.3312, allocations: 0.5964 MB / 443.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3312, allocations: 0 / 443.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001018/0.3323, allocations: 453.4 kB / 444.3 MB, free: 37.38 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (coil.inductor.i,currentController.x,converter.hBridge.integrator.y,converter.firstOrder.y,speedController.x,firstOrder.y,adda.sample1.y,adda.hold1.y,adda.sample2.y,e2d.dt1.x,e2d.sample2.y,magnet.d,magnet.d_der) * Number of discrete variables: 7 ($whenCondition1,coil.hallSensor.uniformNoise.state[1],coil.hallSensor.uniformNoise.state[2],coil.hallSensor.uniformNoise.state[3],coil.hallSensor.uniformNoise.state[4],coil.hallSensor.uniformNoise.r,coil.hallSensor.uniformNoise.r_raw) * Number of discrete states: 4 (coil.hallSensor.uniformNoise.state[1],coil.hallSensor.uniformNoise.state[2],coil.hallSensor.uniformNoise.state[3],coil.hallSensor.uniformNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004064/0.3327, allocations: 227 kB / 444.5 MB, free: 37.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.3341, allocations: 0.8952 MB / 445.4 MB, free: 36.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3342, allocations: 0 / 445.4 MB, free: 36.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003713/0.3345, allocations: 253.5 kB / 445.6 MB, free: 36.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008601/0.3354, allocations: 148.9 kB / 445.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.3382, allocations: 2.559 MB / 448.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.3386, allocations: 1.046 MB / 449.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004728/0.3391, allocations: 127.8 kB / 449.5 MB, free: 34.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.3393, allocations: 58.86 kB / 449.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3393, allocations: 4 kB / 449.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of Templates: time 0.0146/0.3539, allocations: 9.148 MB / 458.7 MB, free: 33.92 MB / 350.1 MB make -j1 -f MagLev_MagLev.Examples.Continuous.SpeedControl.makefile (rm -f MagLev_MagLev.Examples.Continuous.SpeedControl.pipe ; mkfifo MagLev_MagLev.Examples.Continuous.SpeedControl.pipe ; head -c 1048576 < MagLev_MagLev.Examples.Continuous.SpeedControl.pipe >> ../files/MagLev_MagLev.Examples.Continuous.SpeedControl.sim & ./MagLev_MagLev.Examples.Continuous.SpeedControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > MagLev_MagLev.Examples.Continuous.SpeedControl.pipe 2>&1)