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: translateModel(MagLev.Examples.Continuous.VoltageFed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.VoltageFed") translateModel(MagLev.Examples.Continuous.VoltageFed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.VoltageFed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.002579/0.002579, allocations: 195.5 kB / 16.25 MB, free: 6.629 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.423/1.423, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.1426/0.1426, allocations: 4.216 MB / 294.3 MB, free: 3.266 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 55.91 kB / 355.6 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1283, allocations: 50.46 MB / 406 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.VoltageFed): time 0.007247/0.1356, allocations: 5.781 MB / 411.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004294/0.1399, allocations: 2.15 MB / 414 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009363/0.1409, allocations: 15.94 kB / 414 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.1421, allocations: 265.7 kB / 414.2 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008356/0.1429, allocations: 234.2 kB / 414.5 MB, free: 8.254 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.001122/0.144, allocations: 399.5 kB / 414.9 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.1454, allocations: 1.243 MB / 416.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008058/0.1462, allocations: 0.636 MB / 416.7 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005726/0.1468, allocations: 486 kB / 417.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001009/0.1478, allocations: 0.5465 MB / 417.8 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001613/0.148, allocations: 144 kB / 417.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004137/0.1484, allocations: 247.8 kB / 418.1 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.1486, allocations: 287 kB / 418.4 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004952/0.1491, allocations: 0.5947 MB / 419 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001461/0.1506, allocations: 1.519 MB / 420.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1506, allocations: 0 / 420.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1506, allocations: 0 / 420.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.1507, allocations: 0 / 420.5 MB, free: 2.141 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.002438/0.1531, allocations: 1.41 MB / 422 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.1532, allocations: 8.031 kB / 422 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003648/0.1535, allocations: 135.4 kB / 422.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2183/0.3718, allocations: 0.6494 MB / 422.7 MB, free: 48.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.466e-05/0.372, allocations: 70.59 kB / 422.8 MB, free: 48.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001585/0.3721, allocations: 96.42 kB / 422.9 MB, free: 48.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.3739, allocations: 0.8391 MB / 423.7 MB, free: 48.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.578e-05/0.374, allocations: 1.188 kB / 423.7 MB, free: 48.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.245e-05/0.3741, allocations: 35.47 kB / 423.8 MB, free: 48.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.3741, allocations: 23.25 kB / 423.8 MB, free: 48.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009157/0.375, allocations: 0.5697 MB / 424.4 MB, free: 48.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004391/0.3794, allocations: 3.301 MB / 427.7 MB, free: 46.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006107/0.38, allocations: 479.4 kB / 428.1 MB, free: 45.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.3803, allocations: 153.5 kB / 428.3 MB, free: 45.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.3803, allocations: 5.188 kB / 428.3 MB, free: 45.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003742/0.3807, allocations: 251.7 kB / 428.5 MB, free: 45.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 1.773e-06/0.3807, allocations: 1.344 kB / 428.5 MB, free: 45.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.0009135/0.3816, allocations: 0.5025 MB / 429 MB, free: 45.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.3817, allocations: 122.8 kB / 429.2 MB, free: 45.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007442/0.3824, allocations: 0.7583 MB / 429.9 MB, free: 45.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.483e-05/0.3825, allocations: 50.73 kB / 430 MB, free: 45.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002358/0.3827, allocations: 492.4 kB / 430.5 MB, free: 44.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.153e-05/0.3828, allocations: 132.1 kB / 430.6 MB, free: 44.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.383, allocations: 113.6 kB / 430.7 MB, free: 44.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.427e-05/0.383, allocations: 331.5 kB / 431 MB, free: 44.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002822/0.3833, allocations: 190 kB / 431.2 MB, free: 44.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/0.3837, allocations: 342.1 kB / 431.5 MB, free: 43.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005825/0.3843, allocations: 0.5114 MB / 432 MB, free: 43.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3843, allocations: 0 / 432 MB, free: 43.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008228/0.3851, allocations: 0.6255 MB / 432.7 MB, free: 43.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.3851, allocations: 10.41 kB / 432.7 MB, free: 43.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.3851, allocations: 9.281 kB / 432.7 MB, free: 43.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3852, allocations: 6.219 kB / 432.7 MB, free: 43.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.3856, allocations: 139.8 kB / 432.8 MB, free: 43.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.3857, allocations: 12.84 kB / 432.8 MB, free: 43.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004079/0.3861, allocations: 72.84 kB / 432.9 MB, free: 43.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.3861, allocations: 23 kB / 432.9 MB, free: 43.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004234/0.3865, allocations: 361 kB / 433.3 MB, free: 43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002874/0.3868, allocations: 335.1 kB / 433.6 MB, free: 42.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005073/0.3874, allocations: 0.4884 MB / 434.1 MB, free: 42.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.635e-06/0.3874, allocations: 0 / 434.1 MB, free: 42.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.0007524/0.3881, allocations: 0.6194 MB / 434.7 MB, free: 42.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.3882, allocations: 13.47 kB / 434.7 MB, free: 42.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3882, allocations: 3.281 kB / 434.7 MB, free: 42.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.3882, allocations: 10.14 kB / 434.8 MB, free: 42.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004112/0.3886, allocations: 126.6 kB / 434.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.3886, allocations: 6.406 kB / 434.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003739/0.389, allocations: 54.8 kB / 434.9 MB, free: 42.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.389, allocations: 24.12 kB / 435 MB, free: 42.09 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.0001602/0.3892, allocations: 227.7 kB / 435.2 MB, free: 41.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.007e-05/0.3893, allocations: 82.58 kB / 435.3 MB, free: 41.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.3894, allocations: 73.52 kB / 435.3 MB, free: 41.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3894, allocations: 5.344 kB / 435.3 MB, free: 41.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.3894, allocations: 0 / 435.3 MB, free: 41.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3895, allocations: 7.156 kB / 435.3 MB, free: 41.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001718/0.3912, allocations: 1.278 MB / 436.6 MB, free: 41.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3912, allocations: 0 / 436.6 MB, free: 41.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003118/0.3915, allocations: 60.33 kB / 436.7 MB, free: 41.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.3915, allocations: 7.281 kB / 436.7 MB, free: 41.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/0.3916, allocations: 7.312 kB / 436.7 MB, free: 41.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.3916, allocations: 3.938 kB / 436.7 MB, free: 41.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3916, allocations: 0 / 436.7 MB, free: 41.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008117/0.3924, allocations: 0.6609 MB / 437.4 MB, free: 40.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.3925, allocations: 169.6 kB / 437.5 MB, free: 40.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.972e-05/0.3926, allocations: 14.12 kB / 437.5 MB, free: 40.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000335/0.393, allocations: 20.72 kB / 437.6 MB, free: 40.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/0.393, allocations: 24.09 kB / 437.6 MB, free: 40.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.3931, allocations: 10.5 kB / 437.6 MB, free: 40.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005378/0.3936, allocations: 0.5289 MB / 438.1 MB, free: 40.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3936, allocations: 3.938 kB / 438.1 MB, free: 40.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008916/0.3945, allocations: 401.1 kB / 438.5 MB, free: 40.23 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.0003933/0.3949, allocations: 216.2 kB / 438.7 MB, free: 40.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.396, allocations: 0.7173 MB / 439.5 MB, free: 39.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.396, allocations: 0 / 439.5 MB, free: 39.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002419/0.3963, allocations: 157.8 kB / 439.6 MB, free: 39.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007276/0.397, allocations: 127.9 kB / 439.7 MB, free: 39.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002882/0.3999, allocations: 2.065 MB / 441.8 MB, free: 38.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004161/0.4004, allocations: 0.9838 MB / 442.8 MB, free: 37.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004875/0.4009, allocations: 109.8 kB / 442.9 MB, free: 37.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.401, allocations: 48.25 kB / 442.9 MB, free: 37.71 MB / 350.1 MB Notification: Performance of SimCode: time 8.72e-07/0.401, allocations: 0 / 442.9 MB, free: 37.71 MB / 350.1 MB Notification: Performance of Templates: time 0.01348/0.4145, allocations: 8.007 MB / 450.9 MB, free: 37.18 MB / 350.1 MB make -j1 -f MagLev_MagLev.Examples.Continuous.VoltageFed.makefile Failed to read output from testmodel.py, exit status != 0: 0.4162432523444295 0.432320587 0.279651197 Traceback (most recent call last): File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/./testmodel.py", line 439, in resFile = "%s_res.%s" % (conf["fileName"], outputFormat if not shared.isFMPy(fmisimulator) else 'csv') NameError: name 'fmisimulator' is not defined