Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MagLev_MagLev.Examples.Continuous.SpeedControl.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.SpeedControl,fileNamePrefix="MagLev_MagLev_Examples_Continuous_SpeedControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MagLev.Examples.Continuous.SpeedControl,fileNamePrefix="MagLev_MagLev_Examples_Continuous_SpeedControl",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.0009651/0.0009651, allocations: 99.86 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.001003/0.001003, 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.253/1.253, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.1.0-main/package.mo): time 0.1389/0.1389, allocations: 3.904 MB / 294.9 MB, free: 4.164 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003585, allocations: 8 kB / 356.8 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1018, allocations: 51.37 MB / 408.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.SpeedControl): time 0.005449/0.1073, allocations: 5.347 MB / 413.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003942/0.1113, allocations: 2.261 MB / 415.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004837/0.1118, allocations: 23.94 kB / 415.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000639/0.1125, allocations: 266.3 kB / 416.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005414/0.113, allocations: 319 kB / 416.4 MB, free: 7.547 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.0007862/0.1138, allocations: 327.4 kB / 416.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.1149, allocations: 0.9055 MB / 417.6 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006738/0.1156, allocations: 0.533 MB / 418.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004171/0.116, allocations: 406.2 kB / 418.6 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004987/0.1165, allocations: 497.5 kB / 419.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.231e-05/0.1166, allocations: 60 kB / 419.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002716/0.1169, allocations: 135.9 kB / 419.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001637/0.1171, allocations: 203.1 kB / 419.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.1173, allocations: 249 kB / 419.7 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001103/0.1184, allocations: 1.301 MB / 421 MB, free: 2.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.1184, allocations: 4 kB / 421 MB, free: 2.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1184, allocations: 0 / 421 MB, free: 2.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.1184, allocations: 0 / 421 MB, free: 2.918 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: 255 * Number of variables: 255 Notification: Performance of Generate backend data structure: time 0.002431/0.1208, allocations: 1.402 MB / 422.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.1209, allocations: 8.031 kB / 422.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001694/0.1211, allocations: 152.3 kB / 422.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003265/0.1214, allocations: 154.3 kB / 422.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009426/0.1223, allocations: 0.7095 MB / 423.4 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.494e-05/0.1224, allocations: 74 kB / 423.5 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.1225, allocations: 107.9 kB / 423.6 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1704/0.2929, allocations: 0.9625 MB / 424.6 MB, free: 45.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.293, allocations: 1.422 kB / 424.6 MB, free: 45.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-05/0.2931, allocations: 39.75 kB / 424.6 MB, free: 45.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.735e-05/0.2931, allocations: 24.72 kB / 424.6 MB, free: 45.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.2943, allocations: 0.682 MB / 425.3 MB, free: 45.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00499/0.2993, allocations: 3.719 MB / 429 MB, free: 44.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.3007, allocations: 0.7021 MB / 429.7 MB, free: 44.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.3007, allocations: 3.781 kB / 429.7 MB, free: 44.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005834/0.3013, allocations: 328.7 kB / 430.1 MB, free: 44.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.004e-06/0.3013, allocations: 0 / 430.1 MB, free: 44.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.001258/0.3026, allocations: 0.7876 MB / 430.8 MB, free: 43.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.3026, allocations: 91.23 kB / 430.9 MB, free: 43.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008309/0.3035, allocations: 0.8555 MB / 431.8 MB, free: 43.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.167e-05/0.3035, allocations: 50.64 kB / 431.8 MB, free: 43.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002873/0.3038, allocations: 0.5351 MB / 432.4 MB, free: 42.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.3039, allocations: 193.2 kB / 432.6 MB, free: 42.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.304, allocations: 14.88 kB / 432.6 MB, free: 42.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.915e-05/0.3041, allocations: 339.5 kB / 432.9 MB, free: 42.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004023/0.3045, allocations: 241.7 kB / 433.1 MB, free: 42.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004387/0.3049, allocations: 405.8 kB / 433.5 MB, free: 42.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004424/0.3054, allocations: 293.4 kB / 433.8 MB, free: 41.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3054, allocations: 3.125 kB / 433.8 MB, free: 41.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001109/0.3065, allocations: 0.7909 MB / 434.6 MB, free: 41.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002567/0.3068, allocations: 1.663 MB / 436.3 MB, free: 39.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3068, allocations: 3.156 kB / 436.3 MB, free: 39.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.3068, allocations: 9.438 kB / 436.3 MB, free: 39.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005933/0.3074, allocations: 170.7 kB / 436.5 MB, free: 39.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.3074, allocations: 14.33 kB / 436.5 MB, free: 39.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004638/0.3079, allocations: 90.41 kB / 436.6 MB, free: 39.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.201e-05/0.3079, allocations: 26.41 kB / 436.6 MB, free: 39.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/0.308, allocations: 4.281 kB / 436.6 MB, free: 39.73 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009056/0.3089, allocations: 0.6489 MB / 437.2 MB, free: 39.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3089, allocations: 5.875 kB / 437.2 MB, free: 39.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.965e-06/0.3089, allocations: 8.344 kB / 437.3 MB, free: 39.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005506/0.3094, allocations: 172.7 kB / 437.4 MB, free: 39.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.3095, allocations: 5.969 kB / 437.4 MB, free: 39.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003928/0.3099, allocations: 72.8 kB / 437.5 MB, free: 39.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.733e-05/0.3099, allocations: 30.19 kB / 437.5 MB, free: 39.4 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 (89): * Single equations (assignments): 88 * 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.0003214/0.3102, allocations: 350.4 kB / 437.9 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.673e-05/0.3103, allocations: 95.78 kB / 438 MB, free: 39.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008832/0.3112, allocations: 0.5805 MB / 438.5 MB, free: 38.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3112, allocations: 6.094 kB / 438.5 MB, free: 38.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3112, allocations: 4 kB / 438.6 MB, free: 38.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.3113, allocations: 3.328 kB / 438.6 MB, free: 38.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/0.3133, allocations: 1.596 MB / 440.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.3133, allocations: 0 / 440.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004606/0.3138, allocations: 93.94 kB / 440.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.3138, allocations: 3.375 kB / 440.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.3138, allocations: 15 kB / 440.3 MB, free: 38.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.3139, allocations: 7.281 kB / 440.3 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.3139, allocations: 4 kB / 440.3 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.315, allocations: 0.9086 MB / 441.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.3152, allocations: 185.6 kB / 441.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.3153, allocations: 18 kB / 441.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003929/0.3157, allocations: 35.5 kB / 441.4 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.4e-05/0.3158, allocations: 34.81 kB / 441.4 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.917e-05/0.3158, allocations: 13.44 kB / 441.5 MB, free: 37.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005572/0.3164, allocations: 0.5907 MB / 442.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3164, allocations: 3.281 kB / 442.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009083/0.3173, allocations: 468.9 kB / 442.5 MB, free: 36.99 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (coil.inductor.i,currentController.x,converter.hBridge.integrator.y,converter.firstOrder.y,speedController.x,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 (49): * Single equations (assignments): 47 * 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.001629/0.3189, allocations: 1.566 MB / 444.1 MB, free: 35.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.3202, allocations: 0.907 MB / 445 MB, free: 35.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3203, allocations: 0 / 445 MB, free: 35.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003607/0.3206, allocations: 251.5 kB / 445.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006449/0.3213, allocations: 143.7 kB / 445.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003513/0.3248, allocations: 6.094 MB / 451.5 MB, free: 30.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.3252, allocations: 1.063 MB / 452.5 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004021/0.3256, allocations: 136.7 kB / 452.7 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004058/0.326, allocations: 428.5 kB / 453.1 MB, free: 29.47 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.326, allocations: 0 / 453.1 MB, free: 29.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0334/0.3594, allocations: 17.31 MB / 470.4 MB, free: 27.9 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/0.3596, allocations: 206.8 kB / 470.6 MB, free: 27.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.028/2.388, allocations: 0 / 470.6 MB, free: 27.66 MB / 350.1 MB (rm -f MagLev_MagLev.Examples.Continuous.SpeedControl.pipe ; mkfifo MagLev_MagLev.Examples.Continuous.SpeedControl.pipe ; head -c 1048576 < MagLev_MagLev.Examples.Continuous.SpeedControl.pipe >> ../files/MagLev_MagLev.Examples.Continuous.SpeedControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_MagLev_MagLev_Examples_Continuous_SpeedControl_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 MagLev_MagLev_Examples_Continuous_SpeedControl.fmu > MagLev_MagLev.Examples.Continuous.SpeedControl.pipe 2>&1) Environment - environmentSimulation: