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.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.VoltageFed,fileNamePrefix="MagLev_MagLev_Examples_Continuous_VoltageFed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MagLev.Examples.Continuous.VoltageFed,fileNamePrefix="MagLev_MagLev_Examples_Continuous_VoltageFed",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.0009617/0.0009617, allocations: 100.1 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.0009065/0.0009065, 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.239/1.239, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.1.0-main/package.mo): time 0.1275/0.1275, allocations: 3.913 MB / 294.9 MB, free: 4.148 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002741/0.0002741, allocations: 8 kB / 356.8 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08763/0.08791, allocations: 51.38 MB / 408.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.VoltageFed): time 0.004947/0.09289, allocations: 4.812 MB / 413 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002913/0.09583, allocations: 2.116 MB / 415.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003307/0.09617, allocations: 23.94 kB / 415.2 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005669/0.09675, allocations: 242.6 kB / 415.4 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004651/0.09723, allocations: 275.2 kB / 415.7 MB, free: 8.289 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.0006222/0.09786, allocations: 287.4 kB / 416 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007932/0.09866, allocations: 0.7766 MB / 416.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005714/0.09924, allocations: 489.5 kB / 417.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003166/0.09956, allocations: 354.4 kB / 417.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004337/0.1, allocations: 429.8 kB / 418 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.131e-05/0.1001, allocations: 52 kB / 418 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002451/0.1003, allocations: 131.9 kB / 418.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.1005, allocations: 171.2 kB / 418.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.1007, allocations: 225.1 kB / 418.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009576/0.1016, allocations: 1.196 MB / 419.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1016, allocations: 0 / 419.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1017, allocations: 0 / 419.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.1017, allocations: 0 / 419.7 MB, free: 4.188 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.00201/0.1037, allocations: 1.25 MB / 421 MB, free: 2.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.1037, allocations: 12.03 kB / 421 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.1039, allocations: 135.5 kB / 421.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002961/0.1042, allocations: 134.5 kB / 421.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008224/0.105, allocations: 0.6434 MB / 421.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.325e-05/0.1051, allocations: 66 kB / 422 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.1052, allocations: 95.89 kB / 422.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.1065, allocations: 0.8493 MB / 422.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.1065, allocations: 4 kB / 422.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.758e-05/0.1066, allocations: 36 kB / 423 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.1066, allocations: 23.94 kB / 423 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.1076, allocations: 0.5779 MB / 423.6 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1765/0.2841, allocations: 3.344 MB / 426.9 MB, free: 44.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000765/0.2849, allocations: 0.4946 MB / 427.4 MB, free: 44.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.5e-05/0.285, allocations: 6.781 kB / 427.4 MB, free: 44.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004036/0.2854, allocations: 263.8 kB / 427.7 MB, free: 44.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.024e-06/0.2854, allocations: 3.469 kB / 427.7 MB, free: 44.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009553/0.2864, allocations: 0.6283 MB / 428.3 MB, free: 43.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.2864, allocations: 115.3 kB / 428.4 MB, free: 43.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007529/0.2872, allocations: 0.7658 MB / 429.2 MB, free: 43.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.96e-05/0.2873, allocations: 48.3 kB / 429.2 MB, free: 43.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003353/0.2876, allocations: 497.7 kB / 429.7 MB, free: 43.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.2877, allocations: 133.5 kB / 429.8 MB, free: 43.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.573e-05/0.2877, allocations: 10.03 kB / 429.8 MB, free: 43.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.245e-05/0.2878, allocations: 331.8 kB / 430.2 MB, free: 43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/0.2882, allocations: 198.3 kB / 430.4 MB, free: 43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003883/0.2886, allocations: 345.6 kB / 430.7 MB, free: 42.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004035/0.289, allocations: 239.8 kB / 430.9 MB, free: 42.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.289, allocations: 3.5 kB / 430.9 MB, free: 42.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000954/0.29, allocations: 0.6489 MB / 431.6 MB, free: 42.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002957/0.2903, allocations: 1.751 MB / 433.3 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.2903, allocations: 7.719 kB / 433.3 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.2903, allocations: 6.312 kB / 433.3 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004844/0.2908, allocations: 141.2 kB / 433.5 MB, free: 40.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.2908, allocations: 13.59 kB / 433.5 MB, free: 40.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004096/0.2912, allocations: 71.53 kB / 433.6 MB, free: 40.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.2913, allocations: 28.75 kB / 433.6 MB, free: 40.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.626e-06/0.2913, allocations: 6.281 kB / 433.6 MB, free: 40.82 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006989/0.292, allocations: 0.527 MB / 434.1 MB, free: 40.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.292, allocations: 2.969 kB / 434.1 MB, free: 40.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.582e-06/0.292, allocations: 9.469 kB / 434.1 MB, free: 40.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004398/0.2925, allocations: 132.5 kB / 434.3 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.2925, allocations: 14.67 kB / 434.3 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003334/0.2928, allocations: 60.61 kB / 434.3 MB, free: 40.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/0.2929, allocations: 27.5 kB / 434.4 MB, free: 40.59 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 (72): * Single equations (assignments): 71 * 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.0003265/0.2932, allocations: 332.4 kB / 434.7 MB, free: 40.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.746e-05/0.2933, allocations: 78.48 kB / 434.8 MB, free: 40.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.2934, allocations: 79.05 kB / 434.9 MB, free: 40.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.2934, allocations: 3.188 kB / 434.9 MB, free: 40.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.2934, allocations: 3.828 kB / 434.9 MB, free: 40.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.2935, allocations: 3.219 kB / 434.9 MB, free: 40.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.2952, allocations: 1.31 MB / 436.2 MB, free: 39.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2952, allocations: 2 kB / 436.2 MB, free: 39.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003208/0.2955, allocations: 65.97 kB / 436.2 MB, free: 39.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.2955, allocations: 2.719 kB / 436.2 MB, free: 39.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.772e-05/0.2955, allocations: 14.66 kB / 436.3 MB, free: 39.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2956, allocations: 3.156 kB / 436.3 MB, free: 39.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2956, allocations: 0 / 436.3 MB, free: 39.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008123/0.2964, allocations: 0.7034 MB / 437 MB, free: 39.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.2965, allocations: 165.1 kB / 437.1 MB, free: 39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.794e-05/0.2966, allocations: 14.5 kB / 437.1 MB, free: 38.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003377/0.2969, allocations: 27.06 kB / 437.2 MB, free: 38.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.562e-05/0.297, allocations: 31.08 kB / 437.2 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.297, allocations: 13.98 kB / 437.2 MB, free: 38.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004879/0.2975, allocations: 0.5347 MB / 437.7 MB, free: 38.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2975, allocations: 0 / 437.7 MB, free: 38.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008454/0.2984, allocations: 407.7 kB / 438.1 MB, free: 38.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (coil.inductor.i,converter.hBridge.integrator.y,converter.firstOrder.y,adda.hold1.y,adda.sample2.y,e2d.dt1.x,e2d.sample1.y,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 (33): * Single equations (assignments): 31 * 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.00124/0.2996, allocations: 1.421 MB / 439.6 MB, free: 37.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000947/0.3006, allocations: 0.7099 MB / 440.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3006, allocations: 4 kB / 440.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002392/0.3009, allocations: 173.9 kB / 440.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005649/0.3014, allocations: 127.8 kB / 440.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003121/0.3046, allocations: 5.747 MB / 446.3 MB, free: 32.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.3049, allocations: 1.003 MB / 447.3 MB, free: 31.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003168/0.3053, allocations: 110.2 kB / 447.4 MB, free: 31.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003381/0.3056, allocations: 354 kB / 447.8 MB, free: 31.46 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3056, allocations: 3.312 kB / 447.8 MB, free: 31.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02339/0.329, allocations: 14.58 MB / 462.4 MB, free: 30.46 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001254/0.3292, allocations: 190.3 kB / 462.5 MB, free: 30.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.883/2.213, allocations: 8.422 kB / 462.6 MB, free: 30.22 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_MagLev_MagLev_Examples_Continuous_VoltageFed_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 MagLev_MagLev_Examples_Continuous_VoltageFed.fmu > MagLev_MagLev.Examples.Continuous.VoltageFed.pipe 2>&1) Environment - environmentSimulation: