Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MagLev_MagLev.Examples.Continuous.CurrentControl.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.CurrentControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.CurrentControl") translateModel(MagLev.Examples.Continuous.CurrentControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.CurrentControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008672/0.0008675, allocations: 99.5 kB / 16.02 MB, free: 76 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.0009625/0.0009625, allocations: 180.2 kB / 16.92 MB, free: 6.891 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.27/1.27, allocations: 223.2 MB / 240.9 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.1283/0.1283, allocations: 4.205 MB / 296.3 MB, free: 4.301 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002881/0.0002882, allocations: 8 kB / 358.5 MB, free: 2.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09217/0.09247, allocations: 51.44 MB / 409.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.CurrentControl): time 0.005821/0.09833, allocations: 5.558 MB / 415.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003452/0.1018, allocations: 2.19 MB / 417.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004301/0.1023, allocations: 19.94 kB / 417.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006971/0.103, allocations: 284.9 kB / 418 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005254/0.1035, allocations: 238.3 kB / 418.2 MB, free: 6.762 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.0008113/0.1043, allocations: 403.4 kB / 418.6 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.1054, allocations: 1.235 MB / 419.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000718/0.1061, allocations: 0.5803 MB / 420.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003637/0.1065, allocations: 386 kB / 420.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007947/0.1073, allocations: 471.8 kB / 421.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.016e-05/0.1074, allocations: 56 kB / 421.3 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002771/0.1077, allocations: 155.8 kB / 421.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.1079, allocations: 191 kB / 421.7 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004037/0.1083, allocations: 0.5376 MB / 422.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009575/0.1093, allocations: 1.223 MB / 423.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.1093, allocations: 0 / 423.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1093, allocations: 0 / 423.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.1093, allocations: 0 / 423.4 MB, free: 1.508 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.002062/0.1114, allocations: 1.278 MB / 424.7 MB, free: 184 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.97e-05/0.1114, allocations: 8.031 kB / 424.7 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003067/0.1117, allocations: 143.4 kB / 424.8 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1646/0.2764, allocations: 0.6858 MB / 425.5 MB, free: 45.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.172e-05/0.2764, allocations: 72.5 kB / 425.6 MB, free: 45.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.2766, allocations: 90.59 kB / 425.7 MB, free: 45.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.2781, allocations: 0.8964 MB / 426.6 MB, free: 45.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.2782, allocations: 3.219 kB / 426.6 MB, free: 45.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.866e-05/0.2783, allocations: 36.28 kB / 426.6 MB, free: 45.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.2783, allocations: 25.81 kB / 426.6 MB, free: 45.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.2793, allocations: 0.6148 MB / 427.3 MB, free: 45.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004355/0.2837, allocations: 3.416 MB / 430.7 MB, free: 44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009516/0.2846, allocations: 0.574 MB / 431.3 MB, free: 43.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003191/0.285, allocations: 191.8 kB / 431.4 MB, free: 43.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.285, allocations: 3.344 kB / 431.4 MB, free: 43.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004406/0.2854, allocations: 277.9 kB / 431.7 MB, free: 43.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.034e-06/0.2855, allocations: 0 / 431.7 MB, free: 43.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001025/0.2865, allocations: 0.5858 MB / 432.3 MB, free: 43.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.2866, allocations: 88.08 kB / 432.4 MB, free: 43.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000837/0.2874, allocations: 0.8066 MB / 433.2 MB, free: 42.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.588e-05/0.2875, allocations: 50.47 kB / 433.2 MB, free: 42.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.2877, allocations: 0.5006 MB / 433.7 MB, free: 42.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.618e-05/0.2878, allocations: 146.7 kB / 433.9 MB, free: 42.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.688e-05/0.2879, allocations: 66.3 kB / 434 MB, free: 42.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.798e-05/0.288, allocations: 326.8 kB / 434.3 MB, free: 42.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.2883, allocations: 216 kB / 434.5 MB, free: 41.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003839/0.2887, allocations: 362.4 kB / 434.8 MB, free: 41.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006772/0.2894, allocations: 0.5478 MB / 435.4 MB, free: 41.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2894, allocations: 3.375 kB / 435.4 MB, free: 41.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009516/0.2903, allocations: 0.6964 MB / 436.1 MB, free: 41.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.947e-05/0.2904, allocations: 225 kB / 436.3 MB, free: 40.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.2904, allocations: 6.438 kB / 436.3 MB, free: 40.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.2905, allocations: 6.5 kB / 436.3 MB, free: 40.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004931/0.291, allocations: 143.4 kB / 436.5 MB, free: 40.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.291, allocations: 10.28 kB / 436.5 MB, free: 40.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/0.2914, allocations: 86.92 kB / 436.5 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.716e-05/0.2914, allocations: 26.25 kB / 436.6 MB, free: 40.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.53e-06/0.2915, allocations: 4.875 kB / 436.6 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007683/0.2922, allocations: 0.567 MB / 437.1 MB, free: 40.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2922, allocations: 6.609 kB / 437.2 MB, free: 40.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.362e-06/0.2923, allocations: 9.312 kB / 437.2 MB, free: 40.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004457/0.2927, allocations: 134.9 kB / 437.3 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.964e-06/0.2927, allocations: 6.438 kB / 437.3 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.2931, allocations: 76.58 kB / 437.4 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.2931, allocations: 22.66 kB / 437.4 MB, free: 40.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,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 (76): * Single equations (assignments): 75 * 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.0003374/0.2935, allocations: 342.8 kB / 437.7 MB, free: 40.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.546e-05/0.2935, allocations: 78.41 kB / 437.8 MB, free: 40.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007554/0.2943, allocations: 479.4 kB / 438.3 MB, free: 39.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.2943, allocations: 4.125 kB / 438.3 MB, free: 39.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.2943, allocations: 3.875 kB / 438.3 MB, free: 39.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.2943, allocations: 3.375 kB / 438.3 MB, free: 39.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/0.2961, allocations: 1.394 MB / 439.7 MB, free: 39.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2961, allocations: 0 / 439.7 MB, free: 39.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003505/0.2964, allocations: 74.08 kB / 439.8 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.2964, allocations: 0 / 439.8 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.2965, allocations: 13.53 kB / 439.8 MB, free: 39.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.2965, allocations: 3.281 kB / 439.8 MB, free: 39.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.2965, allocations: 1.078 kB / 439.8 MB, free: 39.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009606/0.2975, allocations: 0.7502 MB / 440.5 MB, free: 38.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.2976, allocations: 169.6 kB / 440.7 MB, free: 38.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.615e-05/0.2977, allocations: 11.41 kB / 440.7 MB, free: 38.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.298, allocations: 34.08 kB / 440.7 MB, free: 38.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.453e-05/0.2981, allocations: 26.34 kB / 440.8 MB, free: 38.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.2982, allocations: 16.44 kB / 440.8 MB, free: 38.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005424/0.2987, allocations: 0.5544 MB / 441.3 MB, free: 38.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2987, allocations: 0 / 441.3 MB, free: 38.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009062/0.2996, allocations: 428.4 kB / 441.7 MB, free: 38.24 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (coil.inductor.i,currentController.x,converter.hBridge.integrator.y,converter.firstOrder.y,adda.sample1.y,adda.hold1.y,adda.sample2.y,e2d.dt1.x,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 (38): * Single equations (assignments): 36 * 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.0004066/0.3, allocations: 204.2 kB / 441.9 MB, free: 38.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.3012, allocations: 0.7723 MB / 442.7 MB, free: 37.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3012, allocations: 0 / 442.7 MB, free: 37.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002923/0.3015, allocations: 198.9 kB / 442.9 MB, free: 37.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007608/0.3023, allocations: 136.6 kB / 443 MB, free: 37.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.3048, allocations: 2.381 MB / 445.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.3052, allocations: 1.003 MB / 446.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.3054, allocations: 61.34 kB / 446.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3054, allocations: 0 / 446.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of Templates: time 0.01346/0.3188, allocations: 10.8 MB / 457.3 MB, free: 34.4 MB / 350.1 MB make -j1 -f MagLev_MagLev.Examples.Continuous.CurrentControl.makefile make -j1 -f MagLev_MagLev.Examples.Continuous.CurrentControl.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppMagLev_MagLev.Examples.Continuous.CurrentControlCalcHelperMain.o OMCppMagLev_MagLev.Examples.Continuous.CurrentControlCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppMagLev_MagLev.Examples.Continuous.CurrentControlCalcHelperMain.o] Error 1