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.0008879/0.0008879, allocations: 91.92 kB / 16.02 MB, free: 80 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.0009558/0.0009559, allocations: 180.7 kB / 16.92 MB, free: 6.652 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.282/1.282, allocations: 223.2 MB / 240.9 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0-main/package.mo): time 0.1602/0.1602, allocations: 4.218 MB / 296.3 MB, free: 4.043 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003218/0.0003219, allocations: 8 kB / 358.5 MB, free: 2.484 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09495/0.09529, allocations: 51.44 MB / 409.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.VoltageFed): time 0.005704/0.101, allocations: 5.32 MB / 415.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003281/0.1043, allocations: 2.115 MB / 417.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004182/0.1048, allocations: 19.94 kB / 417.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006774/0.1055, allocations: 273.6 kB / 417.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005217/0.106, allocations: 230.3 kB / 417.9 MB, free: 7.016 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.0007413/0.1068, allocations: 383.5 kB / 418.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000963/0.1077, allocations: 1.164 MB / 419.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006756/0.1084, allocations: 0.5565 MB / 420 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000343/0.1088, allocations: 370.1 kB / 420.3 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00076/0.1095, allocations: 439.5 kB / 420.8 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.495e-05/0.1096, allocations: 56 kB / 420.8 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002947/0.1099, allocations: 151.9 kB / 421 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001494/0.1101, allocations: 179 kB / 421.1 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003926/0.1105, allocations: 0.5105 MB / 421.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009329/0.1114, allocations: 1.177 MB / 422.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1114, allocations: 0 / 422.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1115, allocations: 0 / 422.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.1115, allocations: 0 / 422.8 MB, free: 2.012 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.001981/0.1135, allocations: 1.239 MB / 424.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.1135, allocations: 8.031 kB / 424.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002981/0.1138, allocations: 131.5 kB / 424.2 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1512/0.265, allocations: 0.6522 MB / 424.9 MB, free: 45.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.588e-05/0.2651, allocations: 67.72 kB / 424.9 MB, free: 45.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.2652, allocations: 94.12 kB / 425 MB, free: 45.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.2667, allocations: 0.8457 MB / 425.9 MB, free: 45.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.2667, allocations: 1.812 kB / 425.9 MB, free: 45.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.581e-05/0.2668, allocations: 34.75 kB / 425.9 MB, free: 45.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.2668, allocations: 24.36 kB / 425.9 MB, free: 45.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009283/0.2678, allocations: 0.5745 MB / 426.5 MB, free: 45.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004167/0.272, allocations: 3.329 MB / 429.8 MB, free: 44.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006225/0.2726, allocations: 0.4914 MB / 430.3 MB, free: 43.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.2729, allocations: 159.2 kB / 430.5 MB, free: 43.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.2729, allocations: 3.938 kB / 430.5 MB, free: 43.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004188/0.2733, allocations: 255 kB / 430.7 MB, free: 43.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.053e-06/0.2733, allocations: 0 / 430.7 MB, free: 43.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.0009045/0.2742, allocations: 0.5285 MB / 431.3 MB, free: 43.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.2743, allocations: 110.9 kB / 431.4 MB, free: 43.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007011/0.275, allocations: 0.7662 MB / 432.1 MB, free: 43.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.2751, allocations: 45.7 kB / 432.2 MB, free: 43.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.2753, allocations: 496.3 kB / 432.7 MB, free: 42.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.62e-05/0.2754, allocations: 131.8 kB / 432.8 MB, free: 42.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.77e-05/0.2755, allocations: 59.55 kB / 432.8 MB, free: 42.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.117e-05/0.2755, allocations: 328.2 kB / 433.2 MB, free: 42.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002871/0.2758, allocations: 187.2 kB / 433.3 MB, free: 42.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003287/0.2761, allocations: 358.3 kB / 433.7 MB, free: 42.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005784/0.2767, allocations: 0.5141 MB / 434.2 MB, free: 41.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2768, allocations: 0 / 434.2 MB, free: 41.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008189/0.2776, allocations: 0.6462 MB / 434.9 MB, free: 41.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.45e-05/0.2776, allocations: 230 kB / 435.1 MB, free: 41.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.2777, allocations: 6.438 kB / 435.1 MB, free: 41.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.2777, allocations: 7.094 kB / 435.1 MB, free: 41.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004483/0.2781, allocations: 137.5 kB / 435.2 MB, free: 41.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.2782, allocations: 7.062 kB / 435.2 MB, free: 41.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003672/0.2785, allocations: 76.64 kB / 435.3 MB, free: 41.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.251e-05/0.2786, allocations: 27.72 kB / 435.3 MB, free: 41.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.52e-06/0.2786, allocations: 6.531 kB / 435.3 MB, free: 41.11 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006438/0.2792, allocations: 0.5198 MB / 435.9 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2792, allocations: 7.219 kB / 435.9 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.112e-06/0.2793, allocations: 13.03 kB / 435.9 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004023/0.2797, allocations: 127.4 kB / 436 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.2797, allocations: 6.688 kB / 436 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000311/0.28, allocations: 58.16 kB / 436.1 MB, free: 40.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.28, allocations: 24.22 kB / 436.1 MB, free: 40.83 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.000285/0.2803, allocations: 337.7 kB / 436.4 MB, free: 40.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.065e-05/0.2804, allocations: 76.44 kB / 436.5 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000109/0.2805, allocations: 73.08 kB / 436.6 MB, free: 40.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2805, allocations: 3.219 kB / 436.6 MB, free: 40.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.2805, allocations: 0 / 436.6 MB, free: 40.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.2805, allocations: 14.52 kB / 436.6 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.2822, allocations: 1.276 MB / 437.9 MB, free: 39.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2822, allocations: 7.156 kB / 437.9 MB, free: 39.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/0.2825, allocations: 70.28 kB / 437.9 MB, free: 39.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2826, allocations: 3.938 kB / 437.9 MB, free: 39.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.2826, allocations: 7.156 kB / 438 MB, free: 39.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2826, allocations: 3.094 kB / 438 MB, free: 39.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2826, allocations: 6.438 kB / 438 MB, free: 39.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008277/0.2834, allocations: 0.6728 MB / 438.6 MB, free: 39.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.2836, allocations: 165.8 kB / 438.8 MB, free: 39.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.27e-05/0.2836, allocations: 22.41 kB / 438.8 MB, free: 39.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/0.284, allocations: 27.06 kB / 438.8 MB, free: 39.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.213e-05/0.284, allocations: 23.91 kB / 438.9 MB, free: 39.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.2841, allocations: 9.797 kB / 438.9 MB, free: 39.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000476/0.2845, allocations: 0.5291 MB / 439.4 MB, free: 39.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2845, allocations: 3.375 kB / 439.4 MB, free: 39.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007688/0.2853, allocations: 394.7 kB / 439.8 MB, free: 38.91 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.0003518/0.2857, allocations: 215.6 kB / 440 MB, free: 38.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009342/0.2866, allocations: 0.7003 MB / 440.7 MB, free: 38.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2866, allocations: 7.203 kB / 440.7 MB, free: 38.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.2869, allocations: 170 kB / 440.9 MB, free: 38.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007044/0.2876, allocations: 131.1 kB / 441 MB, free: 38.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.2898, allocations: 2.223 MB / 443.2 MB, free: 37.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.2901, allocations: 0.9787 MB / 444.2 MB, free: 36.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.2903, allocations: 58.02 kB / 444.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2903, allocations: 4 kB / 444.3 MB, free: 36.33 MB / 350.1 MB Notification: Performance of Templates: time 0.01095/0.3012, allocations: 10.06 MB / 454.3 MB, free: 35.26 MB / 350.1 MB make -j1 -f MagLev_MagLev.Examples.Continuous.VoltageFed.makefile make -j1 -f MagLev_MagLev.Examples.Continuous.VoltageFed.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.VoltageFedCalcHelperMain.o OMCppMagLev_MagLev.Examples.Continuous.VoltageFedCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppMagLev_MagLev.Examples.Continuous.VoltageFedCalcHelperMain.o] Error 1