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: "" <> 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.001054/0.001054, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.008116/0.008116, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.369/1.369, allocations: 223.2 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.142/0.142, allocations: 4.207 MB / 295.6 MB, free: 4.141 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003189/0.000319, allocations: 8 kB / 357.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08693/0.08726, allocations: 51.44 MB / 409.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.VoltageFed): time 0.005651/0.09294, allocations: 5.317 MB / 414.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00334/0.09631, allocations: 2.127 MB / 416.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003884/0.09671, allocations: 23.94 kB / 416.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007046/0.09743, allocations: 261.7 kB / 417.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005238/0.09796, allocations: 228.8 kB / 417.3 MB, free: 6.977 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.0007972/0.09877, allocations: 387.5 kB / 417.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001532/0.1003, allocations: 1.168 MB / 418.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007432/0.1011, allocations: 0.5526 MB / 419.4 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003881/0.1015, allocations: 358.2 kB / 419.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001192/0.1027, allocations: 451 kB / 420.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.1028, allocations: 59.94 kB / 420.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003114/0.1031, allocations: 147.9 kB / 420.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.1033, allocations: 183 kB / 420.6 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000416/0.1037, allocations: 0.5104 MB / 421.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.1049, allocations: 1.409 MB / 422.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1049, allocations: 0 / 422.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1049, allocations: 0 / 422.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.1049, allocations: 4 kB / 422.5 MB, free: 1.727 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.002151/0.1071, allocations: 1.233 MB / 423.8 MB, free: 456 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.1071, allocations: 8.031 kB / 423.8 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000161/0.1073, allocations: 135.6 kB / 423.9 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003143/0.1076, allocations: 131.5 kB / 424 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1544/0.262, allocations: 0.6543 MB / 424.7 MB, free: 44.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.914e-05/0.2621, allocations: 70.33 kB / 424.7 MB, free: 44.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.2623, allocations: 92.66 kB / 424.8 MB, free: 44.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.2638, allocations: 0.8425 MB / 425.7 MB, free: 44.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.2638, allocations: 5.531 kB / 425.7 MB, free: 44.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.809e-05/0.2639, allocations: 38.84 kB / 425.7 MB, free: 44.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.2639, allocations: 19.91 kB / 425.7 MB, free: 44.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009866/0.2649, allocations: 0.579 MB / 426.3 MB, free: 44.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004376/0.2693, allocations: 3.335 MB / 429.7 MB, free: 43.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006373/0.27, allocations: 493 kB / 430.1 MB, free: 43.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/0.2702, allocations: 153.5 kB / 430.3 MB, free: 43.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.2703, allocations: 3.438 kB / 430.3 MB, free: 43.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003899/0.2707, allocations: 260.1 kB / 430.5 MB, free: 43.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.374e-06/0.2707, allocations: 0 / 430.5 MB, free: 43.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.0009389/0.2716, allocations: 0.524 MB / 431.1 MB, free: 43.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.2717, allocations: 120.3 kB / 431.2 MB, free: 43.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008824/0.2726, allocations: 0.7628 MB / 432 MB, free: 42.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.49e-05/0.2726, allocations: 46.94 kB / 432 MB, free: 42.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/0.2729, allocations: 491.9 kB / 432.5 MB, free: 42.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.916e-05/0.273, allocations: 133.8 kB / 432.6 MB, free: 42.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/0.2731, allocations: 59.55 kB / 432.7 MB, free: 42.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.899e-05/0.2731, allocations: 331.6 kB / 433 MB, free: 42.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003142/0.2734, allocations: 184.2 kB / 433.2 MB, free: 42.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003526/0.2738, allocations: 352.1 kB / 433.5 MB, free: 41.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006336/0.2744, allocations: 0.524 MB / 434 MB, free: 41.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.2744, allocations: 0 / 434 MB, free: 41.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009036/0.2754, allocations: 0.6449 MB / 434.7 MB, free: 41.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.645e-05/0.2754, allocations: 225.8 kB / 434.9 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.2755, allocations: 7.484 kB / 434.9 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.2755, allocations: 6.344 kB / 434.9 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004775/0.276, allocations: 133.4 kB / 435 MB, free: 40.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.276, allocations: 13.64 kB / 435.1 MB, free: 40.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004061/0.2764, allocations: 80.84 kB / 435.1 MB, free: 40.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-05/0.2764, allocations: 23.34 kB / 435.2 MB, free: 40.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.333e-06/0.2765, allocations: 4.094 kB / 435.2 MB, free: 40.78 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007071/0.2772, allocations: 0.5168 MB / 435.7 MB, free: 40.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.2772, allocations: 3.25 kB / 435.7 MB, free: 40.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.702e-06/0.2772, allocations: 9.5 kB / 435.7 MB, free: 40.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004314/0.2776, allocations: 131.4 kB / 435.8 MB, free: 40.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.465e-06/0.2776, allocations: 14.47 kB / 435.8 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/0.278, allocations: 67.52 kB / 435.9 MB, free: 40.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.922e-05/0.278, allocations: 19.28 kB / 435.9 MB, free: 40.5 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,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 (70): * Single equations (assignments): 69 * 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.0003158/0.2784, allocations: 334.2 kB / 436.2 MB, free: 40.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.913e-05/0.2785, allocations: 73.84 kB / 436.3 MB, free: 40.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.2786, allocations: 73.05 kB / 436.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.2786, allocations: 7 kB / 436.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.2786, allocations: 0 / 436.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2786, allocations: 6.969 kB / 436.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001731/0.2803, allocations: 1.298 MB / 437.7 MB, free: 39.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.2804, allocations: 0 / 437.7 MB, free: 39.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003263/0.2807, allocations: 61.09 kB / 437.8 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.2807, allocations: 3.25 kB / 437.8 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.2807, allocations: 12.16 kB / 437.8 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.2807, allocations: 0 / 437.8 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2808, allocations: 3.375 kB / 437.8 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008722/0.2816, allocations: 0.6847 MB / 438.5 MB, free: 39.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.2818, allocations: 169.7 kB / 438.6 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.605e-05/0.2819, allocations: 10.38 kB / 438.6 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000351/0.2822, allocations: 26.94 kB / 438.7 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.345e-05/0.2823, allocations: 20.22 kB / 438.7 MB, free: 38.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.2823, allocations: 18.25 kB / 438.7 MB, free: 38.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005321/0.2829, allocations: 0.5286 MB / 439.2 MB, free: 38.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2829, allocations: 0 / 439.2 MB, free: 38.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008628/0.2837, allocations: 391.9 kB / 439.6 MB, free: 38.58 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 (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.001337/0.2851, allocations: 1.346 MB / 441 MB, free: 37.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.2861, allocations: 0.7014 MB / 441.7 MB, free: 37.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2861, allocations: 2.75 kB / 441.7 MB, free: 37.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002537/0.2864, allocations: 162 kB / 441.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007785/0.2872, allocations: 126 kB / 441.9 MB, free: 37.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008313/0.2955, allocations: 8.101 MB / 450.1 MB, free: 32.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.2958, allocations: 0.9797 MB / 451 MB, free: 31.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000376/0.2962, allocations: 112.8 kB / 451.1 MB, free: 31.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003545/0.2966, allocations: 349.7 kB / 451.5 MB, free: 31.48 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2966, allocations: 0 / 451.5 MB, free: 31.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02743/0.324, allocations: 15.12 MB / 466.6 MB, free: 30.48 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001292/0.3242, allocations: 214.4 kB / 466.8 MB, free: 30.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.157/2.481, allocations: 0 / 466.8 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/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)