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.001052/0.001053, 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.001028/0.001028, 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.297/1.297, 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.01943/0.01943, allocations: 4.231 MB / 295.4 MB, free: 10.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 59.89 kB / 408.5 MB, free: 27.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06903/0.07025, allocations: 50.46 MB / 458.9 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.SpeedControl): time 0.007122/0.0774, allocations: 6.375 MB / 465.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003436/0.08086, allocations: 2.349 MB / 467.7 MB, free: 112 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003711/0.08124, allocations: 19.94 kB / 467.7 MB, free: 92 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008168/0.08207, allocations: 352.6 kB / 468 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005774/0.08265, allocations: 333.3 kB / 468.4 MB, free: 15.42 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.0009406/0.0836, allocations: 0.4991 MB / 468.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001232/0.08485, allocations: 1.45 MB / 470.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008828/0.08574, allocations: 0.7622 MB / 471.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004726/0.08622, allocations: 0.5525 MB / 471.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009311/0.08716, allocations: 0.6392 MB / 472.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001822/0.08736, allocations: 160 kB / 472.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003686/0.08773, allocations: 263.8 kB / 472.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002556/0.088, allocations: 330.8 kB / 473 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005409/0.08854, allocations: 0.6763 MB / 473.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001578/0.09013, allocations: 1.72 MB / 475.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.09014, allocations: 0 / 475.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.09015, allocations: 0 / 475.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.09018, allocations: 3.938 kB / 475.4 MB, free: 8.316 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.002749/0.09293, allocations: 1.619 MB / 477 MB, free: 6.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.09298, allocations: 12.03 kB / 477 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003428/0.09333, allocations: 156 kB / 477.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009636/0.0943, allocations: 0.7451 MB / 477.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.332e-05/0.09438, allocations: 78 kB / 478 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.09452, allocations: 100 kB / 478.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.09615, allocations: 0.9742 MB / 479.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.09619, allocations: 0 / 479.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.322e-05/0.09628, allocations: 40 kB / 479.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.0963, allocations: 24 kB / 479.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.09763, allocations: 0.6677 MB / 479.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005529/0.1032, allocations: 3.616 MB / 483.4 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/0.1047, allocations: 0.6813 MB / 484.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004266/0.1052, allocations: 226 kB / 484.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.025e-05/0.1052, allocations: 8.375 kB / 484.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005628/0.1058, allocations: 325.9 kB / 484.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.054e-06/0.1058, allocations: 0 / 484.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.001403/0.1072, allocations: 0.6756 MB / 485.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.1073, allocations: 85.55 kB / 485.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.1083, allocations: 0.8608 MB / 486.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.92e-05/0.1084, allocations: 53.69 kB / 486.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003835/0.1088, allocations: 0.5392 MB / 486.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.1089, allocations: 186.4 kB / 487 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/0.1091, allocations: 134.6 kB / 487.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1092, allocations: 333.9 kB / 487.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005053/0.1098, allocations: 248.8 kB / 487.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005862/0.1104, allocations: 395.5 kB / 488.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.1114, allocations: 0.6059 MB / 488.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.1114, allocations: 8 kB / 488.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001403/0.1128, allocations: 0.7735 MB / 489.5 MB, free: 9.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.1129, allocations: 11.94 kB / 489.5 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.1129, allocations: 4 kB / 489.5 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.1129, allocations: 8 kB / 489.5 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007111/0.1136, allocations: 167.7 kB / 489.7 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.1136, allocations: 12 kB / 489.7 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/0.1142, allocations: 83.52 kB / 489.8 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.682e-05/0.1142, allocations: 35.92 kB / 489.8 MB, free: 9.363 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006935/0.1149, allocations: 422 kB / 490.2 MB, free: 8.949 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005387/0.1155, allocations: 392.4 kB / 490.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009612/0.1164, allocations: 0.5977 MB / 491.2 MB, free: 7.848 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.585e-06/0.1165, allocations: 0 / 491.2 MB, free: 7.848 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization_lambda0): time 0.00129/0.1178, allocations: 0.7522 MB / 492 MB, free: 7.086 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1178, allocations: 7.984 kB / 492 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1178, allocations: 8 kB / 492 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.954e-06/0.1178, allocations: 8 kB / 492 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006631/0.1185, allocations: 159.7 kB / 492.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.1185, allocations: 11.98 kB / 492.2 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004951/0.119, allocations: 67.88 kB / 492.2 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-05/0.1191, allocations: 27.98 kB / 492.3 MB, free: 6.801 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.0002352/0.1193, allocations: 236 kB / 492.5 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.1194, allocations: 95.39 kB / 492.6 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.1206, allocations: 0.5567 MB / 493.1 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.1206, allocations: 3.984 kB / 493.1 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1206, allocations: 0 / 493.1 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.1208, allocations: 192.3 kB / 493.3 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.1209, allocations: 19.94 kB / 493.4 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000412/0.1214, allocations: 27.97 kB / 493.4 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.642e-05/0.1215, allocations: 40.33 kB / 493.4 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001828/0.1233, allocations: 0.6674 MB / 494.1 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001592/0.1249, allocations: 0.982 MB / 495.1 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004222/0.1253, allocations: 223.4 kB / 495.3 MB, free: 3.715 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007146/0.1261, allocations: 0.5888 MB / 495.9 MB, free: 3.129 MB / 366.1 MB Notification: Performance of Backend: time 1.884e-06/0.1261, allocations: 0 / 495.9 MB, free: 3.129 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.1281, allocations: 0.892 MB / 496.8 MB, free: 2.258 MB / 366.1 MB Notification: Performance of SimCode: time 0.003168/0.1313, allocations: 2.479 MB / 499.2 MB, free: 15.73 MB / 382.1 MB Notification: Performance of Templates: time 0.02208/0.1534, allocations: 13.74 MB / 0.501 GB, free: 2.051 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)