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.1.0-main/package.mo", uses=false) Using package MagLev with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.1.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: "" <> buildModelFMU(MagLev.Examples.Continuous.CurrentControl,fileNamePrefix="MagLev_MagLev_Examples_Continuous_CurrentControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MagLev.Examples.Continuous.CurrentControl,fileNamePrefix="MagLev_MagLev_Examples_Continuous_CurrentControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009351/0.0009348, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.0009657/0.0009658, allocations: 177.3 kB / 15.95 MB, free: 216 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.289/1.289, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.1.0-main/package.mo): time 0.1147/0.1147, allocations: 3.907 MB / 294.9 MB, free: 4.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003243, allocations: 8 kB / 356.8 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.09399, allocations: 51.38 MB / 408.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.CurrentControl): time 0.005132/0.09916, allocations: 5.038 MB / 413.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003141/0.1023, allocations: 2.175 MB / 415.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003435/0.1027, allocations: 19.94 kB / 415.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005763/0.1033, allocations: 258.4 kB / 415.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005004/0.1038, allocations: 291.1 kB / 416 MB, free: 7.973 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.0006393/0.1045, allocations: 295.4 kB / 416.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008275/0.1053, allocations: 0.8311 MB / 417.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006026/0.1059, allocations: 0.4967 MB / 417.6 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003202/0.1062, allocations: 374.3 kB / 418 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004446/0.1067, allocations: 449.7 kB / 418.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.454e-05/0.1068, allocations: 56 kB / 418.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.107, allocations: 143.8 kB / 418.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.1072, allocations: 183.1 kB / 418.8 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.1074, allocations: 229.1 kB / 419 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009194/0.1083, allocations: 1.235 MB / 420.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1083, allocations: 0 / 420.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1083, allocations: 0 / 420.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.1083, allocations: 0 / 420.2 MB, free: 3.68 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: 235 * Number of variables: 235 Notification: Performance of Generate backend data structure: time 0.002075/0.1104, allocations: 1.307 MB / 421.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.1104, allocations: 12.03 kB / 421.6 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001482/0.1106, allocations: 143.8 kB / 421.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.1109, allocations: 142.4 kB / 421.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008419/0.1118, allocations: 0.6745 MB / 422.5 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.523e-05/0.1118, allocations: 66 kB / 422.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.112, allocations: 96 kB / 422.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.1133, allocations: 0.9 MB / 423.6 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1133, allocations: 4 kB / 423.6 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.757e-05/0.1134, allocations: 36 kB / 423.6 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.1134, allocations: 20 kB / 423.6 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1636/0.277, allocations: 0.608 MB / 424.2 MB, free: 45.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00436/0.2814, allocations: 3.462 MB / 427.7 MB, free: 44.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008593/0.2823, allocations: 0.5722 MB / 428.3 MB, free: 44.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.2823, allocations: 6.531 kB / 428.3 MB, free: 44.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004228/0.2828, allocations: 276.3 kB / 428.6 MB, free: 44.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.884e-06/0.2828, allocations: 0 / 428.6 MB, free: 44.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009675/0.2837, allocations: 0.6773 MB / 429.2 MB, free: 44.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.2838, allocations: 92.5 kB / 429.3 MB, free: 44.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008089/0.2846, allocations: 0.8028 MB / 430.1 MB, free: 43.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.054e-05/0.2847, allocations: 48.89 kB / 430.2 MB, free: 43.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.285, allocations: 0.5127 MB / 430.7 MB, free: 43.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.115e-05/0.2851, allocations: 157.9 kB / 430.8 MB, free: 43.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.431e-05/0.2851, allocations: 11 kB / 430.8 MB, free: 43.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.869e-05/0.2852, allocations: 335.3 kB / 431.2 MB, free: 43.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003395/0.2855, allocations: 209.2 kB / 431.4 MB, free: 43.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003873/0.2859, allocations: 362.3 kB / 431.7 MB, free: 42.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003859/0.2863, allocations: 267.2 kB / 432 MB, free: 42.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.2863, allocations: 0 / 432 MB, free: 42.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0009379/0.2873, allocations: 0.7021 MB / 432.7 MB, free: 42.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002318/0.2875, allocations: 1.658 MB / 434.4 MB, free: 40.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.2875, allocations: 9.094 kB / 434.4 MB, free: 40.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.2875, allocations: 10.41 kB / 434.4 MB, free: 40.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005312/0.2881, allocations: 151.3 kB / 434.5 MB, free: 40.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.2881, allocations: 6.281 kB / 434.5 MB, free: 40.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/0.2885, allocations: 79.48 kB / 434.6 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.2885, allocations: 31.34 kB / 434.6 MB, free: 40.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.744e-06/0.2886, allocations: 6.156 kB / 434.6 MB, free: 40.68 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007394/0.2893, allocations: 0.5695 MB / 435.2 MB, free: 40.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2893, allocations: 3.219 kB / 435.2 MB, free: 40.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.104e-06/0.2893, allocations: 9 kB / 435.2 MB, free: 40.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004659/0.2898, allocations: 147.4 kB / 435.4 MB, free: 40.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.2898, allocations: 13.86 kB / 435.4 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/0.2902, allocations: 62.08 kB / 435.4 MB, free: 40.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/0.2902, allocations: 27.48 kB / 435.5 MB, free: 40.38 MB / 350.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,$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 (78): * Single equations (assignments): 77 * 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.0003159/0.2905, allocations: 352.1 kB / 435.8 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.858e-05/0.2906, allocations: 85.59 kB / 435.9 MB, free: 40.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007346/0.2914, allocations: 487.9 kB / 436.4 MB, free: 39.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2914, allocations: 3.25 kB / 436.4 MB, free: 39.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2914, allocations: 3.156 kB / 436.4 MB, free: 39.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2914, allocations: 3.422 kB / 436.4 MB, free: 39.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.2931, allocations: 1.4 MB / 437.8 MB, free: 39.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.2931, allocations: 7.219 kB / 437.8 MB, free: 39.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003639/0.2935, allocations: 68.53 kB / 437.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2935, allocations: 0 / 437.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.2935, allocations: 17.77 kB / 437.9 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2935, allocations: 11.89 kB / 437.9 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2935, allocations: 0.7031 kB / 437.9 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000945/0.2945, allocations: 0.761 MB / 438.6 MB, free: 38.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.2946, allocations: 176.9 kB / 438.8 MB, free: 38.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.459e-05/0.2947, allocations: 11.22 kB / 438.8 MB, free: 38.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.2951, allocations: 38.06 kB / 438.9 MB, free: 38.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.122e-05/0.2952, allocations: 26.98 kB / 438.9 MB, free: 38.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.2952, allocations: 9.969 kB / 438.9 MB, free: 38.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005377/0.2958, allocations: 0.5625 MB / 439.5 MB, free: 38.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2958, allocations: 3.828 kB / 439.5 MB, free: 38.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009395/0.2967, allocations: 418.8 kB / 439.9 MB, free: 38.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (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.sample1.y,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 (39): * Single equations (assignments): 37 * 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.00142/0.2981, allocations: 1.406 MB / 441.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.2993, allocations: 0.7905 MB / 442.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2993, allocations: 0 / 442.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000283/0.2996, allocations: 197.8 kB / 442.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000649/0.3003, allocations: 145.2 kB / 442.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003315/0.3036, allocations: 5.787 MB / 448.2 MB, free: 32.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000362/0.304, allocations: 1.028 MB / 449.2 MB, free: 31.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003636/0.3043, allocations: 117.8 kB / 449.3 MB, free: 31.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003583/0.3047, allocations: 384.5 kB / 449.7 MB, free: 31.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3047, allocations: 0 / 449.7 MB, free: 31.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02748/0.3322, allocations: 15.66 MB / 465.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001333/0.3324, allocations: 201.3 kB / 465.6 MB, free: 29.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.973/2.306, allocations: 3.938 kB / 465.6 MB, free: 29.73 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_MagLev_MagLev_Examples_Continuous_CurrentControl_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 MagLev_MagLev_Examples_Continuous_CurrentControl.fmu > MagLev_MagLev.Examples.Continuous.CurrentControl.pipe 2>&1) Environment - environmentSimulation: