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.001115/0.001115, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001137/0.001137, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.01935/0.01935, allocations: 4.247 MB / 295.4 MB, free: 10.55 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.91 kB / 408.5 MB, free: 27.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07599/0.07724, allocations: 50.46 MB / 458.9 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.CurrentControl): time 0.006778/0.08404, allocations: 6.025 MB / 465 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003444/0.08751, allocations: 2.259 MB / 467.2 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003902/0.08792, allocations: 19.94 kB / 467.2 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008304/0.08875, allocations: 328.8 kB / 467.6 MB, free: 208 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005503/0.08932, allocations: 309.6 kB / 467.9 MB, free: 15.9 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.0008766/0.0902, allocations: 463.2 kB / 468.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.09135, allocations: 1.336 MB / 469.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008412/0.0922, allocations: 0.6677 MB / 470.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004602/0.09267, allocations: 0.5019 MB / 470.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009391/0.09362, allocations: 0.5849 MB / 471.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.09379, allocations: 148 kB / 471.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003816/0.09418, allocations: 247.9 kB / 471.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002213/0.09442, allocations: 306.9 kB / 472.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004701/0.09489, allocations: 0.6297 MB / 472.7 MB, free: 11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00161/0.09651, allocations: 1.607 MB / 474.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.09653, allocations: 8 kB / 474.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09654, allocations: 0 / 474.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.09656, allocations: 0 / 474.3 MB, free: 9.375 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.003121/0.09969, allocations: 1.506 MB / 475.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.09974, allocations: 8.031 kB / 475.9 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003645/0.1001, allocations: 144.1 kB / 476 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009493/0.1011, allocations: 0.7027 MB / 476.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.723e-05/0.1011, allocations: 77.94 kB / 476.8 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.1013, allocations: 99.95 kB / 476.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.1027, allocations: 0.8922 MB / 477.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.1027, allocations: 0 / 477.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.28e-05/0.1028, allocations: 36 kB / 477.8 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.1028, allocations: 24 kB / 477.8 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.104, allocations: 0.5974 MB / 478.4 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004774/0.1088, allocations: 3.37 MB / 481.8 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009912/0.1098, allocations: 0.5439 MB / 482.3 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003328/0.1101, allocations: 181.1 kB / 482.5 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.1102, allocations: 7.984 kB / 482.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004689/0.1106, allocations: 272.8 kB / 482.8 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.294e-06/0.1106, allocations: 0 / 482.8 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.00112/0.1118, allocations: 0.5751 MB / 483.4 MB, free: 32 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.1118, allocations: 89.11 kB / 483.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009321/0.1128, allocations: 0.7979 MB / 484.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.516e-05/0.1129, allocations: 49.69 kB / 484.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003473/0.1132, allocations: 0.5156 MB / 484.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.1133, allocations: 150.8 kB / 485 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.1135, allocations: 118.3 kB / 485.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.1136, allocations: 330 kB / 485.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003982/0.114, allocations: 211.4 kB / 485.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004796/0.1145, allocations: 360.1 kB / 486 MB, free: 13.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008332/0.1154, allocations: 0.5411 MB / 486.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1154, allocations: 4 kB / 486.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001144/0.1165, allocations: 0.6898 MB / 487.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1166, allocations: 11.98 kB / 487.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1166, allocations: 4 kB / 487.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.1166, allocations: 11.94 kB / 487.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005892/0.1172, allocations: 143.8 kB / 487.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.1172, allocations: 8 kB / 487.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004555/0.1177, allocations: 75.44 kB / 487.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.105e-05/0.1177, allocations: 24.12 kB / 487.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005678/0.1183, allocations: 385.4 kB / 487.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004385/0.1187, allocations: 349 kB / 488.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007574/0.1195, allocations: 0.5261 MB / 488.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.076e-06/0.1195, allocations: 4 kB / 488.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001079/0.1206, allocations: 0.6743 MB / 489.4 MB, free: 9.691 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.1206, allocations: 7.125 kB / 489.4 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.1206, allocations: 4 kB / 489.4 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.1207, allocations: 11.94 kB / 489.4 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005618/0.1212, allocations: 143.8 kB / 489.5 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.1213, allocations: 11.94 kB / 489.6 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/0.1217, allocations: 47.72 kB / 489.6 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.099e-05/0.1217, allocations: 27.98 kB / 489.6 MB, free: 9.445 MB / 366.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.000186/0.1219, allocations: 244 kB / 489.9 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.1221, allocations: 95.31 kB / 490 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008948/0.123, allocations: 462.6 kB / 490.4 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.123, allocations: 7.984 kB / 490.4 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.123, allocations: 0 / 490.4 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.1232, allocations: 180.4 kB / 490.6 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.1233, allocations: 12 kB / 490.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003654/0.1237, allocations: 19.98 kB / 490.6 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.491e-05/0.1238, allocations: 27.95 kB / 490.7 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001415/0.1252, allocations: 0.5552 MB / 491.2 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001253/0.1264, allocations: 0.8354 MB / 492 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003249/0.1268, allocations: 184.1 kB / 492.2 MB, free: 6.793 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006614/0.1275, allocations: 0.5576 MB / 492.8 MB, free: 6.238 MB / 366.1 MB Notification: Performance of Backend: time 5.11e-07/0.1275, allocations: 4 kB / 492.8 MB, free: 6.234 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001808/0.1293, allocations: 0.7896 MB / 493.6 MB, free: 5.465 MB / 366.1 MB Notification: Performance of SimCode: time 0.002972/0.1323, allocations: 2.287 MB / 495.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of Templates: time 0.02021/0.1525, allocations: 11.8 MB / 0.4958 GB, free: 7.383 MB / 382.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)