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.001214/0.001218, allocations: 112.7 kB / 16.42 MB, free: 6.512 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.0009965/0.0009965, allocations: 183.9 kB / 17.34 MB, free: 5.734 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.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.01976/0.01976, allocations: 4.238 MB / 295.5 MB, free: 10.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 67.89 kB / 408.5 MB, free: 27.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0706/0.07182, allocations: 50.46 MB / 458.9 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.CurrentControl): time 0.006837/0.07869, allocations: 6.016 MB / 465 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003704/0.08242, allocations: 2.263 MB / 467.2 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006707/0.08311, allocations: 19.94 kB / 467.2 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009619/0.08408, allocations: 320.9 kB / 467.6 MB, free: 228 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008149/0.08492, allocations: 317.5 kB / 467.9 MB, free: 15.91 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.001042/0.08597, allocations: 463.2 kB / 468.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001321/0.08731, allocations: 1.336 MB / 469.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007614/0.08808, allocations: 0.6677 MB / 470.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004133/0.0885, allocations: 0.5058 MB / 470.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008512/0.08936, allocations: 0.5701 MB / 471.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001545/0.08953, allocations: 151.9 kB / 471.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000342/0.08988, allocations: 251.9 kB / 471.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002206/0.09011, allocations: 302.9 kB / 472.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004733/0.09059, allocations: 0.6297 MB / 472.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001454/0.09205, allocations: 1.611 MB / 474.3 MB, free: 9.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.09206, allocations: 0 / 474.3 MB, free: 9.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09207, allocations: 0 / 474.3 MB, free: 9.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.09209, allocations: 8 kB / 474.3 MB, free: 9.387 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.002368/0.09446, allocations: 1.498 MB / 475.8 MB, free: 7.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.0945, allocations: 8.031 kB / 475.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000327/0.09484, allocations: 152.1 kB / 476 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008673/0.09572, allocations: 0.7027 MB / 476.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.513e-05/0.09578, allocations: 77.94 kB / 476.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.09591, allocations: 99.94 kB / 476.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.09731, allocations: 0.8923 MB / 477.8 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.09734, allocations: 3.938 kB / 477.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.248e-05/0.09742, allocations: 40 kB / 477.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.962e-05/0.09745, allocations: 20 kB / 477.8 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.09859, allocations: 0.5974 MB / 478.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004673/0.1033, allocations: 3.373 MB / 481.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.1043, allocations: 0.5439 MB / 482.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004051/0.1047, allocations: 187.7 kB / 482.5 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.283e-05/0.1048, allocations: 4 kB / 482.5 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005368/0.1053, allocations: 264.9 kB / 482.8 MB, free: 0.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.813e-06/0.1053, allocations: 0 / 482.8 MB, free: 0.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001146/0.1065, allocations: 0.579 MB / 483.4 MB, free: 40 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.1066, allocations: 81.11 kB / 483.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009594/0.1075, allocations: 0.8018 MB / 484.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.156e-05/0.1076, allocations: 45.7 kB / 484.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003631/0.108, allocations: 0.5195 MB / 484.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.1081, allocations: 158.7 kB / 485 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.1083, allocations: 110.3 kB / 485.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1084, allocations: 330 kB / 485.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/0.1088, allocations: 211.4 kB / 485.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005096/0.1094, allocations: 360.1 kB / 486 MB, free: 13.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008878/0.1103, allocations: 0.5528 MB / 486.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1103, allocations: 0 / 486.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001193/0.1115, allocations: 0.6856 MB / 487.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1115, allocations: 8 kB / 487.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1115, allocations: 7.938 kB / 487.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.1115, allocations: 12.5 kB / 487.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005989/0.1121, allocations: 147.8 kB / 487.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.1122, allocations: 8 kB / 487.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004356/0.1126, allocations: 75.44 kB / 487.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.287e-05/0.1127, allocations: 23.98 kB / 487.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005884/0.1133, allocations: 381.4 kB / 487.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004569/0.1137, allocations: 353 kB / 488.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007796/0.1145, allocations: 0.5261 MB / 488.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.127e-06/0.1145, allocations: 4 kB / 488.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001099/0.1156, allocations: 0.6699 MB / 489.4 MB, free: 9.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.1157, allocations: 8 kB / 489.4 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1157, allocations: 4 kB / 489.4 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.1157, allocations: 12.53 kB / 489.4 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005629/0.1162, allocations: 139.8 kB / 489.5 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.1163, allocations: 15.92 kB / 489.6 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004071/0.1167, allocations: 43.73 kB / 489.6 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-05/0.1167, allocations: 27.98 kB / 489.6 MB, free: 9.453 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.0001693/0.1169, allocations: 236 kB / 489.9 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.117, allocations: 95.31 kB / 490 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009197/0.118, allocations: 470.6 kB / 490.4 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.118, allocations: 4 kB / 490.4 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.118, allocations: 0 / 490.4 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.1182, allocations: 176.4 kB / 490.6 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.1183, allocations: 19.98 kB / 490.6 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003575/0.1186, allocations: 23.97 kB / 490.6 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.183e-05/0.1187, allocations: 27.97 kB / 490.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001438/0.1202, allocations: 0.5591 MB / 491.2 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001275/0.1215, allocations: 0.8354 MB / 492.1 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003831/0.1219, allocations: 184.1 kB / 492.2 MB, free: 6.793 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006656/0.1225, allocations: 0.5537 MB / 492.8 MB, free: 6.242 MB / 366.1 MB Notification: Performance of Backend: time 4.11e-07/0.1225, allocations: 0 / 492.8 MB, free: 6.242 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.1243, allocations: 0.7778 MB / 493.6 MB, free: 5.484 MB / 366.1 MB Notification: Performance of SimCode: time 0.002828/0.1271, allocations: 2.299 MB / 495.9 MB, free: 3.133 MB / 366.1 MB Notification: Performance of Templates: time 0.01853/0.1457, allocations: 11.8 MB / 0.4958 GB, free: 7.395 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)