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.00118/0.00118, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001211/0.001211, allocations: 193.1 kB / 16.91 MB, free: 6.195 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.18/1.18, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.01716/0.01716, allocations: 4.228 MB / 294.9 MB, free: 10.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 55.91 kB / 356.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1698, allocations: 50.47 MB / 406.7 MB, free: 31.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.CurrentControl): time 0.004748/0.1746, allocations: 6.022 MB / 412.7 MB, free: 25.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002235/0.1769, allocations: 2.214 MB / 414.9 MB, free: 23.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003213/0.1772, allocations: 19.94 kB / 414.9 MB, free: 23.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006358/0.1779, allocations: 269.7 kB / 415.2 MB, free: 22.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003904/0.1783, allocations: 234.3 kB / 415.4 MB, free: 22.67 MB / 302.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.0006334/0.1789, allocations: 411.5 kB / 415.8 MB, free: 22.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006794/0.1796, allocations: 1.328 MB / 417.2 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005462/0.1801, allocations: 0.6677 MB / 417.8 MB, free: 20.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002764/0.1804, allocations: 0.5058 MB / 418.3 MB, free: 19.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006657/0.1811, allocations: 0.577 MB / 418.9 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001087/0.1812, allocations: 152 kB / 419.1 MB, free: 19.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002441/0.1815, allocations: 247.8 kB / 419.3 MB, free: 18.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.1816, allocations: 303 kB / 419.6 MB, free: 18.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002988/0.1819, allocations: 0.6336 MB / 420.2 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006655/0.1826, allocations: 1.274 MB / 421.5 MB, free: 16.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1826, allocations: 4 kB / 421.5 MB, free: 16.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1826, allocations: 0 / 421.5 MB, free: 16.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.1826, allocations: 4 kB / 421.5 MB, free: 16.55 MB / 302.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.001899/0.1845, allocations: 1.472 MB / 423 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.769e-05/0.1846, allocations: 8.031 kB / 423 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002666/0.1848, allocations: 143.4 kB / 423.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006079/0.1854, allocations: 0.6865 MB / 423.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.1855, allocations: 70 kB / 423.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.1856, allocations: 92 kB / 424 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.1867, allocations: 0.8961 MB / 424.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.1868, allocations: 4 kB / 424.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.589e-05/0.1868, allocations: 40 kB / 424.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.1869, allocations: 20 kB / 424.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008624/0.1877, allocations: 0.6012 MB / 425.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003518/0.1912, allocations: 3.388 MB / 428.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007486/0.192, allocations: 0.5592 MB / 429.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002594/0.1923, allocations: 173.1 kB / 429.7 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.1923, allocations: 15.91 kB / 429.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003785/0.1927, allocations: 272.7 kB / 429.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.522e-06/0.1927, allocations: 0 / 429.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.0008747/0.1936, allocations: 0.5623 MB / 430.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.1936, allocations: 97.05 kB / 430.6 MB, free: 7.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006587/0.1943, allocations: 0.8018 MB / 431.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.1944, allocations: 45.7 kB / 431.4 MB, free: 6.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.1946, allocations: 0.499 MB / 431.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.59e-05/0.1946, allocations: 149.8 kB / 432.1 MB, free: 5.609 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.1948, allocations: 114.3 kB / 432.2 MB, free: 5.488 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.588e-05/0.1948, allocations: 330 kB / 432.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.1952, allocations: 215.4 kB / 432.7 MB, free: 4.949 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003462/0.1955, allocations: 356.2 kB / 433.1 MB, free: 4.539 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006201/0.1961, allocations: 0.545 MB / 433.6 MB, free: 3.938 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1961, allocations: 0 / 433.6 MB, free: 3.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0008536/0.197, allocations: 0.6854 MB / 434.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.197, allocations: 8 kB / 434.3 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.197, allocations: 4 kB / 434.3 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1971, allocations: 7.938 kB / 434.3 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.1976, allocations: 143.8 kB / 434.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.1976, allocations: 11.94 kB / 434.5 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003869/0.198, allocations: 75.33 kB / 434.6 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.561e-05/0.198, allocations: 31.98 kB / 434.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004386/0.1984, allocations: 385.4 kB / 435 MB, free: 2.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003532/0.1988, allocations: 349.1 kB / 435.3 MB, free: 2.188 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005492/0.1994, allocations: 0.5263 MB / 435.8 MB, free: 1.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.695e-06/0.1994, allocations: 4 kB / 435.8 MB, free: 1.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.0007792/0.2002, allocations: 0.6505 MB / 436.5 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.654e-06/0.2002, allocations: 8 kB / 436.5 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2002, allocations: 11.92 kB / 436.5 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.25e-06/0.2002, allocations: 12 kB / 436.5 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004584/0.2007, allocations: 143.8 kB / 436.7 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.453e-06/0.2007, allocations: 7.984 kB / 436.7 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003667/0.201, allocations: 51.53 kB / 436.7 MB, free: 0.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.2011, allocations: 28.11 kB / 436.7 MB, free: 0.6797 MB / 302.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.0001078/0.2012, allocations: 232 kB / 437 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.31e-05/0.2013, allocations: 86.91 kB / 437.1 MB, free: 368 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007296/0.202, allocations: 461.7 kB / 437.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-06/0.202, allocations: 4 kB / 437.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.202, allocations: 4 kB / 437.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2021, allocations: 0 / 437.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.204, allocations: 1.373 MB / 438.9 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.204, allocations: 4 kB / 438.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003924/0.2044, allocations: 71.91 kB / 439 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.2044, allocations: 0 / 439 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.2044, allocations: 11.98 kB / 439 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.2045, allocations: 8 kB / 439 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2045, allocations: 3.938 kB / 439 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.2055, allocations: 0.7338 MB / 439.7 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/0.2057, allocations: 172 kB / 439.9 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.301e-05/0.2058, allocations: 12 kB / 439.9 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003678/0.2062, allocations: 27.97 kB / 439.9 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.1e-05/0.2063, allocations: 27.91 kB / 440 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/0.2063, allocations: 15.98 kB / 440 MB, free: 13.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006469/0.2069, allocations: 0.5498 MB / 440.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.207, allocations: 4 kB / 440.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000884/0.2078, allocations: 418.3 kB / 440.9 MB, free: 12.38 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (coil.inductor.i,currentController.x,converter.hBridge.integrator.y,converter.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 (38): * Single equations (assignments): 36 * 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.0004087/0.2083, allocations: 220 kB / 441.1 MB, free: 12.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.2097, allocations: 0.7739 MB / 441.9 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.2097, allocations: 4 kB / 441.9 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003292/0.21, allocations: 191.3 kB / 442.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007947/0.2108, allocations: 154.4 kB / 442.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.214, allocations: 2.244 MB / 444.5 MB, free: 8.805 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005908/0.2146, allocations: 1 MB / 445.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.2148, allocations: 59.42 kB / 445.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2148, allocations: 0 / 445.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of Templates: time 0.01471/0.2295, allocations: 10.94 MB / 456.5 MB, free: 12.8 MB / 334.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)