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.001079/0.001079, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.001133/0.001133, allocations: 185.5 kB / 17.34 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.3/1.3, allocations: 222.9 MB / 241 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.01933/0.01933, allocations: 4.222 MB / 295.4 MB, free: 10.61 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 64.08 kB / 408.5 MB, free: 27.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07918/0.08038, allocations: 50.46 MB / 458.9 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.SpeedControl): time 0.007847/0.08825, allocations: 6.371 MB / 465.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004378/0.09266, allocations: 2.345 MB / 467.7 MB, free: 140 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008497/0.09354, allocations: 23.94 kB / 467.7 MB, free: 116 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.09472, allocations: 348.6 kB / 468 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.09576, allocations: 341.3 kB / 468.4 MB, free: 15.44 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.001246/0.09701, allocations: 0.4952 MB / 468.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001834/0.09886, allocations: 1.45 MB / 470.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.1, allocations: 0.7622 MB / 471.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007776/0.1008, allocations: 0.5602 MB / 471.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001312/0.1022, allocations: 0.6293 MB / 472.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000247/0.1024, allocations: 160 kB / 472.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004681/0.1029, allocations: 263.8 kB / 472.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002607/0.1032, allocations: 330.8 kB / 473 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005775/0.1037, allocations: 0.6724 MB / 473.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001673/0.1054, allocations: 1.713 MB / 475.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.758e-06/0.1054, allocations: 0 / 475.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1055, allocations: 0 / 475.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.617e-05/0.1055, allocations: 0 / 475.4 MB, free: 8.355 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.002862/0.1083, allocations: 1.585 MB / 477 MB, free: 6.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.1084, allocations: 16.03 kB / 477 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003553/0.1088, allocations: 147.3 kB / 477.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.1098, allocations: 0.7367 MB / 477.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.294e-05/0.1099, allocations: 78 kB / 477.9 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.11, allocations: 103.9 kB / 478 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.1117, allocations: 0.9703 MB / 479 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.1117, allocations: 4 kB / 479 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.483e-05/0.1118, allocations: 40 kB / 479 MB, free: 4.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.1118, allocations: 24 kB / 479.1 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.1131, allocations: 0.6676 MB / 479.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005552/0.1187, allocations: 3.619 MB / 483.4 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.1202, allocations: 0.68 MB / 484 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004285/0.1206, allocations: 230 kB / 484.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/0.1207, allocations: 4.375 kB / 484.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005886/0.1213, allocations: 322 kB / 484.6 MB, free: 14.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.314e-06/0.1213, allocations: 7.938 kB / 484.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.001463/0.1228, allocations: 0.6674 MB / 485.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.079e-05/0.1228, allocations: 89.55 kB / 485.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/0.1239, allocations: 0.8492 MB / 486.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.868e-05/0.124, allocations: 45.7 kB / 486.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004441/0.1244, allocations: 0.5419 MB / 486.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.1246, allocations: 181.4 kB / 487 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000199/0.1248, allocations: 130.6 kB / 487.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.125, allocations: 337.9 kB / 487.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004967/0.1255, allocations: 248.8 kB / 487.7 MB, free: 11.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005812/0.126, allocations: 395.5 kB / 488 MB, free: 11.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.1271, allocations: 0.6098 MB / 488.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1271, allocations: 0 / 488.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001368/0.1285, allocations: 0.7691 MB / 489.4 MB, free: 9.793 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.1285, allocations: 8 kB / 489.4 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.1285, allocations: 7.938 kB / 489.4 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.1286, allocations: 8 kB / 489.4 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007168/0.1293, allocations: 167.7 kB / 489.6 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.1293, allocations: 8 kB / 489.6 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005287/0.1298, allocations: 83.23 kB / 489.7 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.1299, allocations: 31.98 kB / 489.7 MB, free: 9.484 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006838/0.1306, allocations: 426 kB / 490.1 MB, free: 9.066 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005538/0.1312, allocations: 384.5 kB / 490.5 MB, free: 8.625 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000942/0.1321, allocations: 0.6055 MB / 491.1 MB, free: 7.965 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.534e-06/0.1321, allocations: 0 / 491.1 MB, free: 7.965 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization_lambda0): time 0.001271/0.1334, allocations: 0.7437 MB / 491.9 MB, free: 7.211 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.1334, allocations: 15.92 kB / 491.9 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1334, allocations: 4 kB / 491.9 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.005e-06/0.1334, allocations: 8 kB / 491.9 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006776/0.1341, allocations: 163.7 kB / 492.1 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.1342, allocations: 8.391 kB / 492.1 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005009/0.1347, allocations: 71.41 kB / 492.1 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-05/0.1347, allocations: 27.98 kB / 492.2 MB, free: 6.918 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.0002015/0.1349, allocations: 228.1 kB / 492.4 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.1351, allocations: 90.88 kB / 492.5 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.1362, allocations: 0.5567 MB / 493 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.1362, allocations: 7.984 kB / 493 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1362, allocations: 3.938 kB / 493 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1362, allocations: 0 / 493 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002602/0.1388, allocations: 1.568 MB / 494.6 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1388, allocations: 0 / 494.6 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005475/0.1394, allocations: 95.81 kB / 494.7 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1394, allocations: 3.984 kB / 494.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.44e-05/0.1395, allocations: 15.98 kB / 494.7 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1395, allocations: 4 kB / 494.7 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.1395, allocations: 3.938 kB / 494.7 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.141, allocations: 0.8746 MB / 495.6 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/0.1413, allocations: 179.8 kB / 495.8 MB, free: 3.191 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.1414, allocations: 19.98 kB / 495.8 MB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004756/0.1419, allocations: 27.98 kB / 495.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.947e-05/0.142, allocations: 36.38 kB / 495.9 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.324e-05/0.142, allocations: 16 kB / 495.9 MB, free: 3.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008024/0.1429, allocations: 0.5888 MB / 496.5 MB, free: 2.508 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1429, allocations: 0 / 496.5 MB, free: 2.508 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001135/0.144, allocations: 458.3 kB / 496.9 MB, free: 2.059 MB / 366.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.0004571/0.1445, allocations: 217.1 kB / 497.1 MB, free: 1.863 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001745/0.1462, allocations: 0.8854 MB / 498 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1462, allocations: 4 kB / 498 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004558/0.1467, allocations: 242.5 kB / 498.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008309/0.1476, allocations: 159.1 kB / 498.4 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003599/0.1512, allocations: 2.014 MB / 0.4887 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006853/0.1519, allocations: 1.051 MB / 0.4897 GB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/0.1521, allocations: 67.42 kB / 0.4898 GB, free: 13.39 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1521, allocations: 3.938 kB / 0.4898 GB, free: 13.39 MB / 382.1 MB Notification: Performance of Templates: time 0.01867/0.1708, allocations: 12.24 MB / 0.5017 GB, free: 1.172 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)