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: translateModel(MagLev.Examples.Continuous.SpeedControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.SpeedControl") translateModel(MagLev.Examples.Continuous.SpeedControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.SpeedControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008403/0.0008403, allocations: 102.7 kB / 15.71 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 174.7 kB / 16.58 MB, free: 6.863 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.546/1.546, allocations: 223.2 MB / 240.6 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.1.0-main/package.mo): time 0.1861/0.1861, allocations: 3.92 MB / 295.6 MB, free: 4.168 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003467, allocations: 8 kB / 357.5 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1229, allocations: 51.36 MB / 408.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.SpeedControl): time 0.006515/0.1295, allocations: 5.58 MB / 414.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004801/0.1343, allocations: 2.226 MB / 416.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001077/0.1354, allocations: 19.94 kB / 416.7 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009944/0.1365, allocations: 270.2 kB / 416.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008536/0.1373, allocations: 250.1 kB / 417.2 MB, free: 7.52 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.00116/0.1385, allocations: 323.4 kB / 417.5 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001559/0.1401, allocations: 1.309 MB / 418.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008083/0.1409, allocations: 0.5252 MB / 419.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005358/0.1414, allocations: 410 kB / 419.7 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006441/0.1421, allocations: 0.4896 MB / 420.2 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.1422, allocations: 68 kB / 420.3 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003575/0.1426, allocations: 151.8 kB / 420.4 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002022/0.1428, allocations: 207 kB / 420.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000242/0.143, allocations: 249 kB / 420.9 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001197/0.1442, allocations: 1.297 MB / 422.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.1442, allocations: 4 kB / 422.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1442, allocations: 0 / 422.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.845e-05/0.1443, allocations: 0 / 422.2 MB, free: 2.465 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.00269/0.147, allocations: 1.394 MB / 423.6 MB, free: 1.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.147, allocations: 8.031 kB / 423.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000413/0.1474, allocations: 158.2 kB / 423.7 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.1485, allocations: 0.7095 MB / 424.5 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.922e-05/0.1486, allocations: 78 kB / 424.5 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2879/0.4365, allocations: 100.4 kB / 424.6 MB, free: 45.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00326/0.4399, allocations: 0.975 MB / 425.6 MB, free: 45.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.316e-05/0.4399, allocations: 1.75 kB / 425.6 MB, free: 45.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.4401, allocations: 42.59 kB / 425.6 MB, free: 45.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.898e-05/0.4402, allocations: 24.47 kB / 425.7 MB, free: 45.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.4416, allocations: 0.6808 MB / 426.4 MB, free: 45.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005996/0.4476, allocations: 3.708 MB / 430.1 MB, free: 44.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.4491, allocations: 0.7013 MB / 430.8 MB, free: 44.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000401/0.4495, allocations: 246.6 kB / 431 MB, free: 44.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.34e-05/0.4495, allocations: 4.016 kB / 431 MB, free: 44.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006352/0.4502, allocations: 329.6 kB / 431.3 MB, free: 44.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.144e-06/0.4502, allocations: 0 / 431.3 MB, free: 44.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.001334/0.4515, allocations: 0.7077 MB / 432 MB, free: 43.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.4516, allocations: 90.47 kB / 432.1 MB, free: 43.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009356/0.4525, allocations: 0.8537 MB / 433 MB, free: 43.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.166e-05/0.4526, allocations: 50.81 kB / 433 MB, free: 43.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003118/0.4529, allocations: 0.5378 MB / 433.6 MB, free: 42.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.453, allocations: 188.4 kB / 433.7 MB, free: 42.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-05/0.4531, allocations: 15.06 kB / 433.8 MB, free: 42.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.6e-05/0.4532, allocations: 338.8 kB / 434.1 MB, free: 42.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004121/0.4536, allocations: 243.8 kB / 434.3 MB, free: 42.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004841/0.4541, allocations: 405.9 kB / 434.7 MB, free: 42.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004836/0.4546, allocations: 298.7 kB / 435 MB, free: 42.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.4546, allocations: 4 kB / 435 MB, free: 42.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001231/0.4558, allocations: 0.7906 MB / 435.8 MB, free: 41.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.631e-05/0.4559, allocations: 219.7 kB / 436 MB, free: 41.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.4559, allocations: 3.219 kB / 436 MB, free: 41.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.456, allocations: 10.47 kB / 436 MB, free: 41.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006262/0.4566, allocations: 165.2 kB / 436.2 MB, free: 41.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.4566, allocations: 17.27 kB / 436.2 MB, free: 41.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004845/0.4571, allocations: 89.62 kB / 436.3 MB, free: 41.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/0.4572, allocations: 22.62 kB / 436.3 MB, free: 41.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.342e-06/0.4572, allocations: 6.344 kB / 436.3 MB, free: 41.34 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009698/0.4582, allocations: 0.6547 MB / 437 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.4582, allocations: 3.031 kB / 437 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.667e-06/0.4582, allocations: 9.406 kB / 437 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005754/0.4588, allocations: 159.8 kB / 437.2 MB, free: 41.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.4588, allocations: 14.84 kB / 437.2 MB, free: 41.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004088/0.4592, allocations: 73.47 kB / 437.2 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.183e-05/0.4593, allocations: 26.31 kB / 437.3 MB, free: 41 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.0004473/0.4597, allocations: 356.6 kB / 437.6 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.223e-05/0.4598, allocations: 90.78 kB / 437.7 MB, free: 40.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009904/0.4608, allocations: 0.5805 MB / 438.3 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.936e-06/0.4608, allocations: 9.922 kB / 438.3 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4609, allocations: 2.375 kB / 438.3 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.4609, allocations: 0 / 438.3 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.4631, allocations: 1.599 MB / 439.9 MB, free: 39.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.4631, allocations: 0 / 439.9 MB, free: 39.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004868/0.4636, allocations: 99.75 kB / 440 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.4636, allocations: 3.344 kB / 440 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.924e-05/0.4636, allocations: 11.28 kB / 440 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.4636, allocations: 6.328 kB / 440 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4637, allocations: 2.062 kB / 440 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.4649, allocations: 0.9077 MB / 440.9 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.4651, allocations: 181 kB / 441.1 MB, free: 39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.4652, allocations: 18.56 kB / 441.1 MB, free: 38.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003866/0.4656, allocations: 38.27 kB / 441.2 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.615e-05/0.4657, allocations: 34.25 kB / 441.2 MB, free: 38.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.4657, allocations: 17.36 kB / 441.2 MB, free: 38.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000631/0.4664, allocations: 0.5919 MB / 441.8 MB, free: 38.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4664, allocations: 0 / 441.8 MB, free: 38.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001069/0.4675, allocations: 464.6 kB / 442.3 MB, free: 38.59 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.000486/0.4679, allocations: 215 kB / 442.5 MB, free: 38.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.4695, allocations: 0.9111 MB / 443.4 MB, free: 38.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4695, allocations: 0 / 443.4 MB, free: 38.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003896/0.4699, allocations: 251.7 kB / 443.6 MB, free: 38.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008367/0.4707, allocations: 158.7 kB / 443.8 MB, free: 38.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.4738, allocations: 2.521 MB / 446.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.4742, allocations: 1.041 MB / 447.3 MB, free: 35.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002309/0.4745, allocations: 76.95 kB / 447.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4745, allocations: 0 / 447.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of Templates: time 0.02029/0.4948, allocations: 12.21 MB / 459.6 MB, free: 34.48 MB / 350.1 MB make -j1 -f MagLev_MagLev.Examples.Continuous.SpeedControl.makefile make -j1 -f MagLev_MagLev.Examples.Continuous.SpeedControl.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppMagLev_MagLev.Examples.Continuous.SpeedControlCalcHelperMain.o OMCppMagLev_MagLev.Examples.Continuous.SpeedControlCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppMagLev_MagLev.Examples.Continuous.SpeedControlCalcHelperMain.o] Error 1