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.0009445/0.0009445, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001186/0.001186, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.1457/0.1457, allocations: 4.215 MB / 295.3 MB, free: 4.129 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002965/0.0002966, allocations: 8 kB / 357.2 MB, free: 2.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0908/0.09111, allocations: 51.44 MB / 408.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.SpeedControl): time 0.006119/0.09727, allocations: 5.544 MB / 414.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003889/0.1012, allocations: 2.206 MB / 416.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008808/0.1021, allocations: 19.94 kB / 416.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009264/0.103, allocations: 270.2 kB / 416.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007221/0.1038, allocations: 242.1 kB / 416.9 MB, free: 7.102 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.0009926/0.1048, allocations: 331.4 kB / 417.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.1061, allocations: 1.278 MB / 418.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007617/0.1069, allocations: 0.525 MB / 419.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004748/0.1074, allocations: 410 kB / 419.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006026/0.108, allocations: 497.4 kB / 420 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.1081, allocations: 60 kB / 420 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003371/0.1085, allocations: 155.8 kB / 420.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001786/0.1087, allocations: 199 kB / 420.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002269/0.1089, allocations: 245.1 kB / 420.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.1101, allocations: 1.278 MB / 421.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.096e-06/0.1101, allocations: 3.938 kB / 421.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1101, allocations: 3.938 kB / 421.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.121e-05/0.1101, allocations: 4 kB / 421.9 MB, free: 2.102 MB / 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.002591/0.1127, allocations: 1.383 MB / 423.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.1128, allocations: 8.031 kB / 423.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003662/0.1132, allocations: 158.2 kB / 423.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1639/0.277, allocations: 0.6944 MB / 424.1 MB, free: 45.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.384e-05/0.2772, allocations: 78.12 kB / 424.2 MB, free: 45.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002021/0.2774, allocations: 100.9 kB / 424.3 MB, free: 45.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002019/0.2794, allocations: 0.9671 MB / 425.3 MB, free: 44.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.2794, allocations: 1.891 kB / 425.3 MB, free: 44.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-05/0.2795, allocations: 41.39 kB / 425.3 MB, free: 44.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.2795, allocations: 23.06 kB / 425.3 MB, free: 44.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.2808, allocations: 0.6684 MB / 426 MB, free: 44.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00564/0.2865, allocations: 3.683 MB / 429.7 MB, free: 43.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.2878, allocations: 0.687 MB / 430.4 MB, free: 43.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000357/0.2882, allocations: 237.5 kB / 430.6 MB, free: 43.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.443e-05/0.2882, allocations: 8.734 kB / 430.6 MB, free: 43.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005985/0.2888, allocations: 324.9 kB / 430.9 MB, free: 43.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.885e-06/0.2889, allocations: 0 / 430.9 MB, free: 43.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001465/0.2903, allocations: 0.6933 MB / 431.6 MB, free: 43.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.799e-05/0.2904, allocations: 94.75 kB / 431.7 MB, free: 42.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/0.2917, allocations: 0.8461 MB / 432.6 MB, free: 42.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.2919, allocations: 54.5 kB / 432.6 MB, free: 42.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004681/0.2924, allocations: 0.5328 MB / 433.2 MB, free: 42.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002177/0.2926, allocations: 176.4 kB / 433.3 MB, free: 42.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/0.2926, allocations: 11.16 kB / 433.3 MB, free: 42.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.2928, allocations: 331.2 kB / 433.7 MB, free: 41.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005539/0.2933, allocations: 238.7 kB / 433.9 MB, free: 41.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007309/0.2941, allocations: 406.3 kB / 434.3 MB, free: 41.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006046/0.2947, allocations: 291.3 kB / 434.6 MB, free: 41.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.2947, allocations: 0 / 434.6 MB, free: 41.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001389/0.2961, allocations: 0.7763 MB / 435.4 MB, free: 40.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.2962, allocations: 217.9 kB / 435.6 MB, free: 40.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.2963, allocations: 14.38 kB / 435.6 MB, free: 40.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.223e-05/0.2963, allocations: 6.562 kB / 435.6 MB, free: 40.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006086/0.2969, allocations: 165.5 kB / 435.7 MB, free: 40.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.662e-05/0.2969, allocations: 11.62 kB / 435.8 MB, free: 40.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005945/0.2975, allocations: 90.11 kB / 435.8 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.704e-05/0.2976, allocations: 32.67 kB / 435.9 MB, free: 40.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/0.2976, allocations: 3.25 kB / 435.9 MB, free: 40.53 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001002/0.2986, allocations: 0.6337 MB / 436.5 MB, free: 40.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.2987, allocations: 3.375 kB / 436.5 MB, free: 40.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.2987, allocations: 12.47 kB / 436.5 MB, free: 40.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005678/0.2992, allocations: 160.1 kB / 436.7 MB, free: 40.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.2993, allocations: 9.469 kB / 436.7 MB, free: 40.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004977/0.2998, allocations: 73.34 kB / 436.8 MB, free: 40.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.114e-05/0.2998, allocations: 39.89 kB / 436.8 MB, free: 40.2 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,$PRE.coil.hallSensor.uniformNoise.state[1],coil.hallSensor.uniformNoise.state[1],$PRE.coil.hallSensor.uniformNoise.state[2],coil.hallSensor.uniformNoise.state[2],$PRE.coil.hallSensor.uniformNoise.state[3],coil.hallSensor.uniformNoise.state[3],$PRE.coil.hallSensor.uniformNoise.state[4],coil.hallSensor.uniformNoise.state[4],$PRE.coil.hallSensor.uniformNoise.r,coil.hallSensor.uniformNoise.r,$PRE.coil.hallSensor.uniformNoise.r_raw,coil.hallSensor.uniformNoise.r_raw,coil.hallSensor.globalSeed.id_impure,coil.hallSensor.uniformNoise.localSeed,coil.hallSensor.uniformNoise.actualGlobalSeed,coil.hallSensor.globalSeed.seed,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00043/0.3003, allocations: 347.1 kB / 437.1 MB, free: 39.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.3004, allocations: 89.06 kB / 437.2 MB, free: 39.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000986/0.3014, allocations: 0.5753 MB / 437.8 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.3014, allocations: 4.094 kB / 437.8 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3014, allocations: 3.25 kB / 437.8 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.3014, allocations: 11.22 kB / 437.8 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002302/0.3038, allocations: 1.56 MB / 439.4 MB, free: 38.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3038, allocations: 0 / 439.4 MB, free: 38.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004575/0.3042, allocations: 101.5 kB / 439.5 MB, free: 38.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.3043, allocations: 0 / 439.5 MB, free: 38.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.3043, allocations: 22.17 kB / 439.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.3043, allocations: 0 / 439.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.3043, allocations: 0 / 439.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.3055, allocations: 0.8895 MB / 440.4 MB, free: 38.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001688/0.3057, allocations: 184.4 kB / 440.6 MB, free: 38.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.3058, allocations: 18.3 kB / 440.6 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004029/0.3063, allocations: 32.44 kB / 440.6 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-05/0.3063, allocations: 41.8 kB / 440.7 MB, free: 38.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.3064, allocations: 9.781 kB / 440.7 MB, free: 38.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006019/0.307, allocations: 0.5874 MB / 441.3 MB, free: 37.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.307, allocations: 4 kB / 441.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001002/0.308, allocations: 453.7 kB / 441.7 MB, free: 37.82 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000385/0.3084, allocations: 209 kB / 441.9 MB, free: 37.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.3098, allocations: 0.8873 MB / 442.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3099, allocations: 0 / 442.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003771/0.3102, allocations: 249.3 kB / 443 MB, free: 37.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007698/0.311, allocations: 152 kB / 443.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002816/0.3139, allocations: 2.44 MB / 445.6 MB, free: 35.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.3143, allocations: 1.037 MB / 446.7 MB, free: 35.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004692/0.3147, allocations: 134.1 kB / 446.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.3149, allocations: 68.5 kB / 446.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3149, allocations: 0 / 446.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of Templates: time 0.01449/0.3294, allocations: 8.886 MB / 455.8 MB, free: 34.45 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)