Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MagLev_MagLev.Examples.Continuous.CurrentControl.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.CurrentControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.CurrentControl") translateModel(MagLev.Examples.Continuous.CurrentControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.CurrentControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009607/0.0009608, 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.005775/0.005775, allocations: 169.3 kB / 16.26 MB, free: 6.676 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.358/1.358, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.1373/0.1373, allocations: 4.214 MB / 295.6 MB, free: 4.141 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.000356, allocations: 8 kB / 357.8 MB, free: 2.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1134, allocations: 51.44 MB / 409.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.CurrentControl): time 0.005944/0.1194, allocations: 5.562 MB / 414.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003755/0.1232, allocations: 2.186 MB / 417 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009168/0.1241, allocations: 23.94 kB / 417.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009619/0.1251, allocations: 277.5 kB / 417.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007439/0.1258, allocations: 238.3 kB / 417.6 MB, free: 6.715 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.001031/0.1269, allocations: 407.1 kB / 418 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001211/0.1281, allocations: 1.235 MB / 419.2 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000754/0.1289, allocations: 0.5765 MB / 419.8 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004007/0.1293, allocations: 389.9 kB / 420.2 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008966/0.1302, allocations: 478.4 kB / 420.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.1303, allocations: 56 kB / 420.7 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003615/0.1307, allocations: 155.8 kB / 420.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.1309, allocations: 187 kB / 421 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005219/0.1314, allocations: 0.5337 MB / 421.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001605/0.133, allocations: 1.471 MB / 423 MB, free: 1.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.133, allocations: 0 / 423 MB, free: 1.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.133, allocations: 4 kB / 423 MB, free: 1.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.611e-05/0.1331, allocations: 0 / 423 MB, free: 1.211 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.19/0.323, allocations: 1.28 MB / 424.3 MB, free: 45.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.3231, allocations: 7.75 kB / 424.3 MB, free: 45.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004665/0.3236, allocations: 146 kB / 424.4 MB, free: 45.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009242/0.3245, allocations: 0.6837 MB / 425.1 MB, free: 44.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.863e-05/0.3246, allocations: 75.31 kB / 425.2 MB, free: 44.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.3247, allocations: 97.64 kB / 425.3 MB, free: 44.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.3262, allocations: 0.8951 MB / 426.2 MB, free: 44.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/0.3263, allocations: 3.578 kB / 426.2 MB, free: 44.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.912e-05/0.3263, allocations: 41.08 kB / 426.2 MB, free: 44.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.887e-05/0.3264, allocations: 21.38 kB / 426.3 MB, free: 44.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009803/0.3273, allocations: 0.6173 MB / 426.9 MB, free: 44.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004308/0.3317, allocations: 3.423 MB / 430.3 MB, free: 43.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000938/0.3326, allocations: 0.5642 MB / 430.9 MB, free: 43.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003232/0.333, allocations: 187.4 kB / 431 MB, free: 43.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.333, allocations: 10.58 kB / 431.1 MB, free: 43.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004399/0.3335, allocations: 279.1 kB / 431.3 MB, free: 43.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.103e-06/0.3335, allocations: 0 / 431.3 MB, free: 43.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001108/0.3346, allocations: 0.5815 MB / 431.9 MB, free: 43.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.3347, allocations: 93.31 kB / 432 MB, free: 43.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009527/0.3356, allocations: 0.7961 MB / 432.8 MB, free: 42.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.3357, allocations: 43.42 kB / 432.8 MB, free: 42.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000301/0.336, allocations: 0.5032 MB / 433.3 MB, free: 42.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.3361, allocations: 150.5 kB / 433.5 MB, free: 42.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.538e-05/0.3362, allocations: 62.16 kB / 433.6 MB, free: 42.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.475e-05/0.3363, allocations: 336.7 kB / 433.9 MB, free: 41.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000388/0.3367, allocations: 210.9 kB / 434.1 MB, free: 41.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00043/0.3371, allocations: 362.6 kB / 434.4 MB, free: 41.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007786/0.3379, allocations: 0.5566 MB / 435 MB, free: 41.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.3379, allocations: 0 / 435 MB, free: 41.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001071/0.339, allocations: 0.693 MB / 435.7 MB, free: 40.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.422e-05/0.3391, allocations: 218.8 kB / 435.9 MB, free: 40.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.3391, allocations: 3.281 kB / 435.9 MB, free: 40.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.3391, allocations: 6.562 kB / 435.9 MB, free: 40.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/0.3397, allocations: 151.1 kB / 436.1 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.3397, allocations: 10.34 kB / 436.1 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004806/0.3402, allocations: 87.23 kB / 436.2 MB, free: 40.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.3402, allocations: 22.78 kB / 436.2 MB, free: 40.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.3402, allocations: 4.219 kB / 436.2 MB, free: 40.48 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008337/0.3411, allocations: 0.5663 MB / 436.8 MB, free: 40.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3411, allocations: 6.281 kB / 436.8 MB, free: 40.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.163e-06/0.3411, allocations: 6.531 kB / 436.8 MB, free: 40.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004876/0.3416, allocations: 144 kB / 436.9 MB, free: 40.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.3416, allocations: 6.094 kB / 436.9 MB, free: 40.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004528/0.3421, allocations: 71.48 kB / 437 MB, free: 40.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.825e-05/0.3421, allocations: 22.72 kB / 437 MB, free: 40.18 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 (76): * Single equations (assignments): 75 * 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.0003742/0.3425, allocations: 347 kB / 437.3 MB, free: 39.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.3426, allocations: 83.86 kB / 437.4 MB, free: 39.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008373/0.3435, allocations: 478.5 kB / 437.9 MB, free: 39.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.3435, allocations: 2.938 kB / 437.9 MB, free: 39.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3435, allocations: 0.75 kB / 437.9 MB, free: 39.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3435, allocations: 3.703 kB / 437.9 MB, free: 39.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001978/0.3455, allocations: 1.386 MB / 439.3 MB, free: 38.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3455, allocations: 0 / 439.3 MB, free: 38.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.3459, allocations: 81.27 kB / 439.4 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.3459, allocations: 3.375 kB / 439.4 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.3459, allocations: 10.03 kB / 439.4 MB, free: 38.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.346, allocations: 0 / 439.4 MB, free: 38.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.346, allocations: 0 / 439.4 MB, free: 38.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.347, allocations: 0.7553 MB / 440.1 MB, free: 38.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001722/0.3472, allocations: 169.3 kB / 440.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.3473, allocations: 20.52 kB / 440.3 MB, free: 38.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003967/0.3477, allocations: 30.33 kB / 440.3 MB, free: 38.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/0.3478, allocations: 30.53 kB / 440.4 MB, free: 38.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/0.3478, allocations: 13.62 kB / 440.4 MB, free: 38.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006345/0.3485, allocations: 0.5567 MB / 440.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3485, allocations: 0 / 440.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001099/0.3496, allocations: 420 kB / 441.4 MB, free: 38 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (coil.inductor.i,currentController.x,converter.hBridge.integrator.y,converter.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 (38): * Single equations (assignments): 36 * 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.0005142/0.3501, allocations: 203.3 kB / 441.6 MB, free: 37.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.3515, allocations: 0.7638 MB / 442.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3516, allocations: 5.688 kB / 442.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003075/0.3519, allocations: 196.8 kB / 442.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008271/0.3527, allocations: 142.7 kB / 442.7 MB, free: 37.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002944/0.3557, allocations: 2.34 MB / 445 MB, free: 36.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/0.3561, allocations: 1.003 MB / 446 MB, free: 35.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004526/0.3566, allocations: 115.5 kB / 446.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.3568, allocations: 58.56 kB / 446.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3568, allocations: 0 / 446.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of Templates: time 0.01474/0.3715, allocations: 8.188 MB / 454.4 MB, free: 34.78 MB / 350.1 MB make -j1 -f MagLev_MagLev.Examples.Continuous.CurrentControl.makefile (rm -f MagLev_MagLev.Examples.Continuous.CurrentControl.pipe ; mkfifo MagLev_MagLev.Examples.Continuous.CurrentControl.pipe ; head -c 1048576 < MagLev_MagLev.Examples.Continuous.CurrentControl.pipe >> ../files/MagLev_MagLev.Examples.Continuous.CurrentControl.sim & ./MagLev_MagLev.Examples.Continuous.CurrentControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > MagLev_MagLev.Examples.Continuous.CurrentControl.pipe 2>&1)