Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 97.58 kB / 17.58 MB, free: 5.801 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.001059/0.001059, allocations: 185.2 kB / 18.48 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.962/1.962, allocations: 205.4 MB / 224.6 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004619/0.000462, allocations: 12 kB / 281.4 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1151, allocations: 47.59 MB / 329 MB, free: 4.059 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01549/0.1306, allocations: 13.33 MB / 342.3 MB, free: 6.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01238/0.1431, allocations: 5.332 MB / 347.7 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004143/0.1472, allocations: 71.62 kB / 347.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003633/0.1509, allocations: 0.7845 MB / 348.5 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003694/0.1546, allocations: 0.4886 MB / 349 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002184/0.1568, allocations: 479.3 kB / 349.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004799/0.1617, allocations: 2.433 MB / 351.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002156/0.1638, allocations: 0.8856 MB / 352.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00209/0.1659, allocations: 0.797 MB / 353.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.1675, allocations: 0.8317 MB / 354.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002648/0.1678, allocations: 104 kB / 354.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003217/0.1681, allocations: 99.83 kB / 354.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003466/0.1685, allocations: 334.4 kB / 354.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008267/0.1693, allocations: 428.5 kB / 355.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003303/0.1726, allocations: 2.438 MB / 357.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.1726, allocations: 4 kB / 357.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1727, allocations: 0 / 357.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001436/0.1728, allocations: 0 / 357.8 MB, free: 7.105 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.005231/0.178, allocations: 2.131 MB / 359.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.1781, allocations: 12.03 kB / 359.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005087/0.1786, allocations: 265 kB / 360.2 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002156/0.1808, allocations: 1.175 MB / 361.4 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002889/0.1811, allocations: 260.8 kB / 361.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000255/0.1814, allocations: 191.9 kB / 361.8 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003894/0.1853, allocations: 1.942 MB / 363.8 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.527e-05/0.1853, allocations: 4 kB / 363.8 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.1855, allocations: 79.94 kB / 363.8 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.775e-05/0.1855, allocations: 48 kB / 363.9 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003675/0.1892, allocations: 1.626 MB / 365.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01178/0.201, allocations: 7.297 MB / 372.8 MB, free: 7.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002633/0.2037, allocations: 1.249 MB / 374.1 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009869/0.2047, allocations: 488.2 kB / 374.5 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.408e-05/0.2048, allocations: 12.98 kB / 374.5 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.2048, allocations: 47.5 kB / 374.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 4.077e-06/0.2048, allocations: 0 / 374.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.2717/0.4766, allocations: 8.807 MB / 383.4 MB, free: 51.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.4767, allocations: 68.06 kB / 383.5 MB, free: 51.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002333/0.479, allocations: 1.231 MB / 384.7 MB, free: 50.88 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001489/0.4792, allocations: 46.92 kB / 384.7 MB, free: 50.83 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007629/0.48, allocations: 0.99 MB / 385.7 MB, free: 50.05 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000361/0.4804, allocations: 390.5 kB / 386.1 MB, free: 49.76 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.353e-05/0.4804, allocations: 30.94 kB / 386.1 MB, free: 49.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.4806, allocations: 364 kB / 386.5 MB, free: 49.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001903/0.4825, allocations: 0.7701 MB / 387.3 MB, free: 49.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002077/0.4846, allocations: 1.232 MB / 388.5 MB, free: 48.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001831/0.4864, allocations: 0.8137 MB / 389.3 MB, free: 48.01 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/0.4865, allocations: 5.062 kB / 389.3 MB, free: 48.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004902/0.4914, allocations: 2.229 MB / 391.5 MB, free: 47.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002793/0.4917, allocations: 0.5102 MB / 392.1 MB, free: 46.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/0.4917, allocations: 18.91 kB / 392.1 MB, free: 46.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001936/0.4919, allocations: 47.5 kB / 392.1 MB, free: 46.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/0.4937, allocations: 441.7 kB / 392.6 MB, free: 46.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007623/0.4945, allocations: 1.284 MB / 393.8 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.4961, allocations: 164.2 kB / 394 MB, free: 45.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.4962, allocations: 63.88 kB / 394.1 MB, free: 45.01 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.445e-06/0.4962, allocations: 3.938 kB / 394.1 MB, free: 45.01 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003876/0.5001, allocations: 1.959 MB / 396 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/0.5001, allocations: 14.5 kB / 396 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.473e-05/0.5002, allocations: 44.64 kB / 396.1 MB, free: 44.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.5018, allocations: 424.7 kB / 396.5 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006403/0.5024, allocations: 1.287 MB / 397.8 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/0.5038, allocations: 142.6 kB / 397.9 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.232e-05/0.5039, allocations: 66.25 kB / 398 MB, free: 42.79 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.moving[1],kinematicPTP.noWphase,speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001083/0.505, allocations: 481.1 kB / 398.5 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003083/0.5053, allocations: 156.5 kB / 398.6 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003293/0.5086, allocations: 1.691 MB / 400.3 MB, free: 41.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.5086, allocations: 11.81 kB / 400.3 MB, free: 41.65 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.5086, allocations: 0 / 400.3 MB, free: 41.65 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.5086, allocations: 6.844 kB / 400.3 MB, free: 41.65 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00659/0.5152, allocations: 3.915 MB / 404.2 MB, free: 39.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.5153, allocations: 11.16 kB / 404.2 MB, free: 39.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.5163, allocations: 278 kB / 404.5 MB, free: 39.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.751e-05/0.5164, allocations: 34.84 kB / 404.6 MB, free: 39.33 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.72e-05/0.5165, allocations: 35.59 kB / 404.6 MB, free: 39.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006365/0.5171, allocations: 1.275 MB / 405.9 MB, free: 37.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.5171, allocations: 19.92 kB / 405.9 MB, free: 37.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00379/0.5209, allocations: 2.367 MB / 408.2 MB, free: 35.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005692/0.5215, allocations: 311 kB / 408.6 MB, free: 35.04 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.5217, allocations: 35.98 kB / 408.6 MB, free: 35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008157/0.5225, allocations: 131.9 kB / 408.7 MB, free: 34.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/0.5227, allocations: 136.2 kB / 408.8 MB, free: 34.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.566e-05/0.5228, allocations: 40 kB / 408.9 MB, free: 34.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001033/0.5238, allocations: 0.8025 MB / 409.7 MB, free: 33.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5238, allocations: 0 / 409.7 MB, free: 33.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001975/0.5258, allocations: 0.6094 MB / 410.3 MB, free: 33.29 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001795/0.526, allocations: 144 kB / 410.4 MB, free: 33.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00526/0.5313, allocations: 2.932 MB / 413.4 MB, free: 30.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/0.5313, allocations: 4 kB / 413.4 MB, free: 30.19 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.5328, allocations: 0.7623 MB / 414.1 MB, free: 29.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001876/0.5347, allocations: 333.8 kB / 414.5 MB, free: 29.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005708/0.5404, allocations: 4.353 MB / 418.8 MB, free: 24.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000663/0.5411, allocations: 1.345 MB / 420.2 MB, free: 23.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005029/0.5416, allocations: 107.4 kB / 420.3 MB, free: 23.1 MB / 318.1 MB Notification: Performance of SimCode: time 2.615e-06/0.5416, allocations: 0 / 420.3 MB, free: 23.1 MB / 318.1 MB Notification: Performance of Templates: time 0.03821/0.5798, allocations: 30.69 MB / 451 MB, free: 8.355 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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 OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPMCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPMCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPMCalcHelperMain.o] Error 1