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.0009919/0.0009919, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.0009996/0.0009997, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.1266/0.1266, allocations: 4.211 MB / 295.3 MB, free: 4.156 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003028, allocations: 8 kB / 357.2 MB, free: 2.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09258, allocations: 51.45 MB / 408.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.VoltageFed): time 0.00512/0.09773, allocations: 5.017 MB / 413.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003353/0.1011, allocations: 2.034 MB / 415.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005102/0.1016, allocations: 19.94 kB / 415.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006966/0.1023, allocations: 242.5 kB / 416 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000479/0.1028, allocations: 222.3 kB / 416.2 MB, free: 7.855 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.000748/0.1036, allocations: 287.5 kB / 416.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009491/0.1045, allocations: 1.11 MB / 417.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005974/0.1052, allocations: 485.3 kB / 418.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003512/0.1055, allocations: 346.3 kB / 418.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000499/0.106, allocations: 421.8 kB / 418.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.877e-05/0.1061, allocations: 56 kB / 418.9 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002785/0.1064, allocations: 147.8 kB / 419 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.1066, allocations: 171.2 kB / 419.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.1067, allocations: 229.1 kB / 419.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009618/0.1077, allocations: 1.169 MB / 420.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1077, allocations: 0 / 420.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1077, allocations: 0 / 420.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.849e-05/0.1078, allocations: 0 / 420.6 MB, free: 3.438 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.001932/0.1097, allocations: 1.239 MB / 421.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.919e-05/0.1097, allocations: 12.03 kB / 421.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002865/0.11, allocations: 130.6 kB / 422 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007753/0.1108, allocations: 0.631 MB / 422.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.432e-05/0.1109, allocations: 66 kB / 422.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.111, allocations: 99.89 kB / 422.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.1123, allocations: 0.8416 MB / 423.6 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.1124, allocations: 3.953 kB / 423.6 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-05/0.1124, allocations: 36 kB / 423.6 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.1125, allocations: 20 kB / 423.7 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1538/0.2662, allocations: 0.5633 MB / 424.2 MB, free: 45.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004358/0.2706, allocations: 3.32 MB / 427.5 MB, free: 44.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005696/0.2712, allocations: 497 kB / 428 MB, free: 44.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.2715, allocations: 160.5 kB / 428.2 MB, free: 44.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.2715, allocations: 3.031 kB / 428.2 MB, free: 44.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004072/0.2719, allocations: 261.8 kB / 428.4 MB, free: 44.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 1.663e-06/0.2719, allocations: 1.422 kB / 428.4 MB, free: 44.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.0008414/0.2728, allocations: 0.5216 MB / 429 MB, free: 44.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.2728, allocations: 115.5 kB / 429.1 MB, free: 43.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007114/0.2735, allocations: 0.7587 MB / 429.8 MB, free: 43.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.2736, allocations: 43.17 kB / 429.9 MB, free: 43.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003244/0.2739, allocations: 492.8 kB / 430.4 MB, free: 43.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.893e-05/0.274, allocations: 131.3 kB / 430.5 MB, free: 43.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.696e-05/0.2741, allocations: 13.25 kB / 430.5 MB, free: 43.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.078e-05/0.2741, allocations: 325.6 kB / 430.8 MB, free: 43.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.2744, allocations: 189.6 kB / 431 MB, free: 43.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003229/0.2748, allocations: 354.3 kB / 431.3 MB, free: 42.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003188/0.2751, allocations: 229.2 kB / 431.6 MB, free: 42.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2751, allocations: 0 / 431.6 MB, free: 42.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.000821/0.2759, allocations: 0.6455 MB / 432.2 MB, free: 42.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.209e-05/0.276, allocations: 227.2 kB / 432.4 MB, free: 42.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.276, allocations: 3.219 kB / 432.4 MB, free: 42.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.276, allocations: 6.562 kB / 432.4 MB, free: 42.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004608/0.2765, allocations: 143.7 kB / 432.6 MB, free: 42.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.2765, allocations: 10.22 kB / 432.6 MB, free: 42.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003665/0.2769, allocations: 71.27 kB / 432.7 MB, free: 42.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.2769, allocations: 23.48 kB / 432.7 MB, free: 42.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.24e-06/0.2769, allocations: 3.031 kB / 432.7 MB, free: 42.2 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006705/0.2776, allocations: 0.5119 MB / 433.2 MB, free: 41.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2776, allocations: 14.86 kB / 433.2 MB, free: 41.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.562e-06/0.2777, allocations: 6.688 kB / 433.2 MB, free: 41.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004181/0.2781, allocations: 130.9 kB / 433.4 MB, free: 41.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.2781, allocations: 11.58 kB / 433.4 MB, free: 41.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/0.2784, allocations: 62.11 kB / 433.4 MB, free: 41.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.904e-05/0.2785, allocations: 23.77 kB / 433.4 MB, free: 41.92 MB / 350.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,$PRE.coil.hallSensor.uniformNoise.state[1],coil.hallSensor.uniformNoise.state[1],$PRE.coil.hallSensor.uniformNoise.state[2],coil.hallSensor.uniformNoise.state[2],$PRE.coil.hallSensor.uniformNoise.state[3],coil.hallSensor.uniformNoise.state[3],$PRE.coil.hallSensor.uniformNoise.state[4],coil.hallSensor.uniformNoise.state[4],$PRE.coil.hallSensor.uniformNoise.r,coil.hallSensor.uniformNoise.r,$PRE.coil.hallSensor.uniformNoise.r_raw,coil.hallSensor.uniformNoise.r_raw,coil.hallSensor.globalSeed.id_impure,coil.hallSensor.uniformNoise.localSeed,coil.hallSensor.uniformNoise.actualGlobalSeed,coil.hallSensor.globalSeed.seed,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002843/0.2787, allocations: 335 kB / 433.8 MB, free: 41.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.49e-05/0.2788, allocations: 82.12 kB / 433.9 MB, free: 41.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.2789, allocations: 68.31 kB / 433.9 MB, free: 41.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.279, allocations: 7.188 kB / 433.9 MB, free: 41.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.279, allocations: 3.953 kB / 433.9 MB, free: 41.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.279, allocations: 7.406 kB / 433.9 MB, free: 41.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/0.2806, allocations: 1.293 MB / 435.2 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2806, allocations: 0 / 435.2 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003054/0.2809, allocations: 65.36 kB / 435.3 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.2809, allocations: 7.781 kB / 435.3 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.545e-05/0.2809, allocations: 10.98 kB / 435.3 MB, free: 40.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.2809, allocations: 4 kB / 435.3 MB, free: 40.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2809, allocations: 3.188 kB / 435.3 MB, free: 40.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007963/0.2817, allocations: 0.6722 MB / 436 MB, free: 40.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.2819, allocations: 158.3 kB / 436.1 MB, free: 40.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.65e-05/0.282, allocations: 18.19 kB / 436.2 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003106/0.2823, allocations: 31.66 kB / 436.2 MB, free: 40.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.798e-05/0.2824, allocations: 27.41 kB / 436.2 MB, free: 40.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.2824, allocations: 6.375 kB / 436.2 MB, free: 40.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005223/0.2829, allocations: 0.5262 MB / 436.8 MB, free: 40.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2829, allocations: 0 / 436.8 MB, free: 40.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009292/0.2838, allocations: 397 kB / 437.1 MB, free: 39.99 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004089/0.2843, allocations: 210 kB / 437.3 MB, free: 39.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009671/0.2852, allocations: 0.7014 MB / 438.1 MB, free: 39.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2853, allocations: 0 / 438.1 MB, free: 39.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002441/0.2855, allocations: 163.7 kB / 438.2 MB, free: 39.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006657/0.2862, allocations: 129 kB / 438.3 MB, free: 39.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.2884, allocations: 2.078 MB / 440.4 MB, free: 38.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.2887, allocations: 0.9823 MB / 441.4 MB, free: 37.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003479/0.289, allocations: 104.9 kB / 441.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.2892, allocations: 50.2 kB / 441.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2892, allocations: 0 / 441.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of Templates: time 0.01166/0.3009, allocations: 7.399 MB / 448.9 MB, free: 37.01 MB / 350.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)