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.001053/0.001053, allocations: 114.4 kB / 16.42 MB, free: 6.5 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.001206/0.001206, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.299/1.299, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.01979/0.01979, allocations: 4.231 MB / 295.4 MB, free: 10.6 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 71.88 kB / 408.5 MB, free: 27.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07677/0.07795, allocations: 50.44 MB / 458.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.SpeedControl): time 0.007703/0.08569, allocations: 6.379 MB / 465.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004496/0.09021, allocations: 2.341 MB / 467.7 MB, free: 148 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009662/0.0912, allocations: 19.94 kB / 467.7 MB, free: 128 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.09249, allocations: 348.6 kB / 468 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.09365, allocations: 343.9 kB / 468.4 MB, free: 15.45 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.001313/0.09497, allocations: 0.4953 MB / 468.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001751/0.09674, allocations: 1.454 MB / 470.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001098/0.09785, allocations: 0.77 MB / 471.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006911/0.09855, allocations: 0.5486 MB / 471.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001234/0.09979, allocations: 0.6413 MB / 472.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003211/0.1001, allocations: 160 kB / 472.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005747/0.1007, allocations: 267.8 kB / 472.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003276/0.101, allocations: 326.8 kB / 473 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008117/0.1019, allocations: 0.6763 MB / 473.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001814/0.1037, allocations: 1.713 MB / 475.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1037, allocations: 0 / 475.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1037, allocations: 0 / 475.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.774e-05/0.1038, allocations: 3.938 kB / 475.4 MB, free: 8.348 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.003317/0.1071, allocations: 1.581 MB / 477 MB, free: 6.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.1071, allocations: 8.031 kB / 477 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004224/0.1076, allocations: 147.3 kB / 477.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.1087, allocations: 0.7367 MB / 477.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.353e-05/0.1088, allocations: 74 kB / 477.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001547/0.1089, allocations: 107.9 kB / 478 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001783/0.1107, allocations: 0.9742 MB / 479 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.1107, allocations: 0 / 479 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.669e-05/0.1108, allocations: 40 kB / 479.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.1109, allocations: 24 kB / 479.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.1122, allocations: 0.6677 MB / 479.7 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005732/0.118, allocations: 3.611 MB / 483.4 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.1196, allocations: 0.6887 MB / 484 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004408/0.12, allocations: 228.5 kB / 484.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.1201, allocations: 8.359 kB / 484.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006007/0.1207, allocations: 318 kB / 484.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.136e-06/0.1207, allocations: 0 / 484.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.001427/0.1221, allocations: 0.6712 MB / 485.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.1222, allocations: 89.55 kB / 485.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.1233, allocations: 0.8531 MB / 486.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.471e-05/0.1234, allocations: 49.69 kB / 486.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003842/0.1238, allocations: 0.5302 MB / 486.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.1239, allocations: 189.4 kB / 487 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002024/0.1241, allocations: 130.6 kB / 487.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1243, allocations: 333.9 kB / 487.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004878/0.1248, allocations: 244.8 kB / 487.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005636/0.1253, allocations: 403.5 kB / 488 MB, free: 11.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.1264, allocations: 0.6099 MB / 488.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.1264, allocations: 0 / 488.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001402/0.1278, allocations: 0.7691 MB / 489.4 MB, free: 9.797 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.1279, allocations: 7.938 kB / 489.4 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.1279, allocations: 7.938 kB / 489.4 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.1279, allocations: 8 kB / 489.5 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006879/0.1286, allocations: 167.7 kB / 489.6 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.1286, allocations: 8 kB / 489.6 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005307/0.1292, allocations: 79.3 kB / 489.7 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.514e-05/0.1292, allocations: 35.92 kB / 489.7 MB, free: 9.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006744/0.1299, allocations: 426 kB / 490.2 MB, free: 9.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005302/0.1305, allocations: 392.4 kB / 490.5 MB, free: 8.621 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009393/0.1314, allocations: 0.5938 MB / 491.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.056e-06/0.1314, allocations: 0 / 491.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization_lambda0): time 0.001284/0.1327, allocations: 0.7515 MB / 491.9 MB, free: 7.211 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.1327, allocations: 10.81 kB / 491.9 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1327, allocations: 4 kB / 491.9 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.1328, allocations: 8 kB / 491.9 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006528/0.1334, allocations: 159.7 kB / 492.1 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.1334, allocations: 12.39 kB / 492.1 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005107/0.134, allocations: 67.39 kB / 492.1 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.134, allocations: 28 kB / 492.2 MB, free: 6.93 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 (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.0001994/0.1342, allocations: 236.1 kB / 492.4 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.1343, allocations: 90.86 kB / 492.5 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.1355, allocations: 0.5567 MB / 493 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.1355, allocations: 0 / 493 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1355, allocations: 0 / 493 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.1357, allocations: 187.8 kB / 493.2 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.1359, allocations: 19.94 kB / 493.2 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004166/0.1363, allocations: 27.97 kB / 493.3 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.575e-05/0.1364, allocations: 32.39 kB / 493.3 MB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001814/0.1382, allocations: 0.6712 MB / 494 MB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001594/0.1398, allocations: 0.9815 MB / 495 MB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004095/0.1403, allocations: 223.4 kB / 495.2 MB, free: 3.859 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007367/0.141, allocations: 0.5888 MB / 495.8 MB, free: 3.273 MB / 366.1 MB Notification: Performance of Backend: time 3.61e-07/0.141, allocations: 0 / 495.8 MB, free: 3.273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.1431, allocations: 0.8853 MB / 496.6 MB, free: 2.406 MB / 366.1 MB Notification: Performance of SimCode: time 0.003572/0.1467, allocations: 2.433 MB / 499.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of Templates: time 0.02387/0.1706, allocations: 13.74 MB / 0.5008 GB, free: 2.25 MB / 382.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)