Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MagLev_MagLev.Examples.Continuous.VoltageFed.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.VoltageFed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.VoltageFed") translateModel(MagLev.Examples.Continuous.VoltageFed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.VoltageFed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 110.3 kB / 16.41 MB, free: 6.027 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.001143/0.001143, allocations: 188.1 kB / 17.34 MB, free: 5.633 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.01953/0.01953, allocations: 4.221 MB / 295.4 MB, free: 10.58 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 71.88 kB / 408.5 MB, free: 27.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.075/0.07621, allocations: 50.45 MB / 458.9 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.VoltageFed): time 0.006941/0.08318, allocations: 5.771 MB / 464.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003682/0.08689, allocations: 2.189 MB / 466.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000703/0.08762, allocations: 15.94 kB / 466.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.08868, allocations: 309 kB / 467.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009259/0.08965, allocations: 297.6 kB / 467.5 MB, free: 276 kB / 334.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.001152/0.09081, allocations: 455.2 kB / 467.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001379/0.0922, allocations: 1.243 MB / 469.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008647/0.09308, allocations: 0.6399 MB / 469.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005103/0.0936, allocations: 494 kB / 470.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.09464, allocations: 0.5401 MB / 470.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002344/0.09489, allocations: 144 kB / 471 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004603/0.09536, allocations: 251.9 kB / 471.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002437/0.09561, allocations: 291 kB / 471.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005807/0.0962, allocations: 0.5908 MB / 472.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.09772, allocations: 1.546 MB / 473.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.09773, allocations: 8 kB / 473.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.09774, allocations: 0 / 473.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.105e-05/0.09778, allocations: 0 / 473.7 MB, free: 10.05 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002747/0.1005, allocations: 1.41 MB / 475.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.1006, allocations: 12.03 kB / 475.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003641/0.1009, allocations: 135.4 kB / 475.2 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000964/0.1019, allocations: 0.6629 MB / 475.9 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.249e-05/0.102, allocations: 70.12 kB / 476 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.1021, allocations: 99.88 kB / 476.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.1035, allocations: 0.8455 MB / 476.9 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.1036, allocations: 0 / 476.9 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.383e-05/0.1037, allocations: 36 kB / 476.9 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.1037, allocations: 20 kB / 477 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.1048, allocations: 0.5583 MB / 477.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005194/0.11, allocations: 3.271 MB / 480.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000773/0.1108, allocations: 480.7 kB / 481.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002814/0.1111, allocations: 144.8 kB / 481.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.1111, allocations: 4 kB / 481.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004312/0.1115, allocations: 258 kB / 481.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.294e-06/0.1116, allocations: 0 / 481.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001041/0.1126, allocations: 0.5055 MB / 482.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.842e-05/0.1127, allocations: 118.7 kB / 482.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009506/0.1136, allocations: 0.7662 MB / 483 MB, free: 340 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.005e-05/0.1137, allocations: 41.7 kB / 483.1 MB, free: 292 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003677/0.1141, allocations: 499 kB / 483.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.1142, allocations: 126.2 kB / 483.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.1144, allocations: 106.2 kB / 483.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1145, allocations: 337.9 kB / 484.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00036/0.1149, allocations: 191.1 kB / 484.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004655/0.1154, allocations: 344.5 kB / 484.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007824/0.1161, allocations: 0.5048 MB / 485.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.1162, allocations: 3.984 kB / 485.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00104/0.1172, allocations: 0.6315 MB / 485.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.1172, allocations: 11.44 kB / 485.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.1173, allocations: 4 kB / 485.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.1173, allocations: 8 kB / 485.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005323/0.1178, allocations: 132.3 kB / 485.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.1178, allocations: 12 kB / 485.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004434/0.1183, allocations: 75.2 kB / 486 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/0.1183, allocations: 24 kB / 486 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004941/0.1188, allocations: 369.2 kB / 486.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003873/0.1192, allocations: 329.4 kB / 486.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006713/0.1199, allocations: 0.5012 MB / 487.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.641e-06/0.1199, allocations: 4 kB / 487.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.0009454/0.1209, allocations: 0.6082 MB / 487.8 MB, free: 11.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/0.1209, allocations: 4 kB / 487.8 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1209, allocations: 8 kB / 487.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.862e-06/0.1209, allocations: 4 kB / 487.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005004/0.1214, allocations: 131.8 kB / 488 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.1215, allocations: 12.45 kB / 488 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/0.1219, allocations: 55.53 kB / 488 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.829e-05/0.122, allocations: 27.94 kB / 488.1 MB, free: 10.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (70): * Single equations (assignments): 69 * 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.0002035/0.1222, allocations: 232 kB / 488.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.991e-05/0.1223, allocations: 75.06 kB / 488.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001342/0.1224, allocations: 75.31 kB / 488.5 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.1224, allocations: 7.984 kB / 488.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1224, allocations: 0 / 488.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1224, allocations: 7.938 kB / 488.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.1246, allocations: 1.271 MB / 489.7 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1246, allocations: 0 / 489.7 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003648/0.1249, allocations: 63.89 kB / 489.8 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.125, allocations: 11.94 kB / 489.8 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.316e-05/0.125, allocations: 8 kB / 489.8 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.125, allocations: 0 / 489.8 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.125, allocations: 0 / 489.8 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.126, allocations: 0.6648 MB / 490.5 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/0.1262, allocations: 160.2 kB / 490.6 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.613e-05/0.1263, allocations: 19.94 kB / 490.7 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003807/0.1267, allocations: 23.97 kB / 490.7 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.701e-05/0.1268, allocations: 23.97 kB / 490.7 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.1268, allocations: 12 kB / 490.7 MB, free: 8.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000654/0.1275, allocations: 0.5264 MB / 491.2 MB, free: 7.707 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1275, allocations: 0 / 491.2 MB, free: 7.707 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001002/0.1285, allocations: 402.2 kB / 491.6 MB, free: 7.312 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (coil.inductor.i,converter.hBridge.integrator.y,converter.firstOrder.y,adda.hold1.y,adda.sample2.y,e2d.dt1.x,e2d.sample2.y,magnet.d,magnet.d_der,adda.sample1.y) * 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 (32): * Single equations (assignments): 30 * 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.0004491/0.129, allocations: 207.7 kB / 491.8 MB, free: 7.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.1302, allocations: 0.6902 MB / 492.5 MB, free: 6.438 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1302, allocations: 0 / 492.5 MB, free: 6.438 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003002/0.1305, allocations: 155.9 kB / 492.7 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007181/0.1312, allocations: 137.5 kB / 492.8 MB, free: 6.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002741/0.134, allocations: 1.719 MB / 494.5 MB, free: 4.398 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005496/0.1345, allocations: 0.981 MB / 495.5 MB, free: 3.391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001608/0.1347, allocations: 59.42 kB / 495.6 MB, free: 3.332 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1347, allocations: 4 kB / 495.6 MB, free: 3.328 MB / 366.1 MB Notification: Performance of Templates: time 0.0151/0.1498, allocations: 10.26 MB / 0.494 GB, free: 9.086 MB / 382.1 MB make -j1 -f MagLev_MagLev.Examples.Continuous.VoltageFed.makefile (rm -f MagLev_MagLev.Examples.Continuous.VoltageFed.pipe ; mkfifo MagLev_MagLev.Examples.Continuous.VoltageFed.pipe ; head -c 1048576 < MagLev_MagLev.Examples.Continuous.VoltageFed.pipe >> ../files/MagLev_MagLev.Examples.Continuous.VoltageFed.sim & ./MagLev_MagLev.Examples.Continuous.VoltageFed -abortSlowSimulation -alarm=480 -lv LOG_STATS > MagLev_MagLev.Examples.Continuous.VoltageFed.pipe 2>&1)