Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001046/0.001046, allocations: 88.17 kB / 17.63 MB, free: 6.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001501/0.001501, allocations: 192 kB / 18.54 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.691/1.691, allocations: 227.3 MB / 246.6 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.0002748, allocations: 4 kB / 307.3 MB, free: 1.609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1507, allocations: 51.49 MB / 358.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.0173/0.1681, allocations: 13.44 MB / 372.2 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3485/0.5166, allocations: 5.391 MB / 377.6 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005577/0.5222, allocations: 74.53 kB / 377.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004779/0.5271, allocations: 0.7836 MB / 378.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004225/0.5313, allocations: 491.3 kB / 379 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002952/0.5343, allocations: 468.3 kB / 379.4 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00586/0.5402, allocations: 2.397 MB / 381.8 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002121/0.5424, allocations: 0.8813 MB / 382.7 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002747/0.5451, allocations: 0.7926 MB / 383.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00229/0.5474, allocations: 0.8197 MB / 384.3 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004948/0.548, allocations: 96.47 kB / 384.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007082/0.5487, allocations: 97.34 kB / 384.5 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005319/0.5492, allocations: 338.1 kB / 384.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008716/0.5501, allocations: 413.9 kB / 385.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004761/0.5549, allocations: 2.39 MB / 387.6 MB, free: 7.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.555, allocations: 5 kB / 387.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.18e-06/0.555, allocations: 0 / 387.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001269/0.5551, allocations: 3.938 kB / 387.6 MB, free: 7.176 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: 469 * Number of variables: 469 Notification: Performance of Generate backend data structure: time 0.007601/0.5627, allocations: 2.11 MB / 389.8 MB, free: 5.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.5628, allocations: 9.406 kB / 389.8 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009961/0.5638, allocations: 251.4 kB / 390 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003347/0.5672, allocations: 1.161 MB / 391.2 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004363/0.5676, allocations: 259.4 kB / 391.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004723/0.5681, allocations: 194.5 kB / 391.6 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006494/0.5746, allocations: 1.913 MB / 393.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.571e-05/0.5747, allocations: 10.06 kB / 393.5 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002372/0.575, allocations: 77.5 kB / 393.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.167e-05/0.5751, allocations: 45.09 kB / 393.7 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006278/0.5814, allocations: 1.61 MB / 395.3 MB, free: 2.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01623/0.5977, allocations: 7.19 MB / 402.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00442/0.6021, allocations: 1.269 MB / 403.7 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001769/0.604, allocations: 477.8 kB / 404.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.6041, allocations: 18.22 kB / 404.2 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.106e-05/0.6042, allocations: 42.31 kB / 404.3 MB, free: 11.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 4.479e-06/0.6042, allocations: 7.938 kB / 404.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.03027/0.6345, allocations: 8.798 MB / 413.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.227e-05/0.6346, allocations: 64.41 kB / 413.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002164/0.6368, allocations: 1.216 MB / 414.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001446/0.6369, allocations: 41.7 kB / 414.4 MB, free: 2.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008251/0.6378, allocations: 0.9836 MB / 415.4 MB, free: 1.906 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004004/0.6382, allocations: 389 kB / 415.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.372e-05/0.6383, allocations: 32 kB / 415.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.6385, allocations: 365.9 kB / 416.1 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001857/0.6403, allocations: 0.7613 MB / 416.9 MB, free: 384 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0023/0.6427, allocations: 1.238 MB / 418.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001875/0.6445, allocations: 0.7988 MB / 418.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.6446, allocations: 8 kB / 418.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004897/0.6495, allocations: 2.223 MB / 421.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004432/0.6499, allocations: 0.5263 MB / 421.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.65, allocations: 16 kB / 421.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001694/0.6501, allocations: 44.86 kB / 421.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001721/0.6519, allocations: 439.3 kB / 422.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.653, allocations: 1.28 MB / 423.5 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/0.6546, allocations: 167.9 kB / 423.6 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.6547, allocations: 68 kB / 423.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.6547, allocations: 11.95 kB / 423.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0041/0.6588, allocations: 1.954 MB / 425.6 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.56e-05/0.6589, allocations: 12 kB / 425.7 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001109/0.659, allocations: 48.23 kB / 425.7 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.6606, allocations: 419.8 kB / 426.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.6617, allocations: 1.276 MB / 427.4 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.6633, allocations: 144 kB / 427.5 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.6634, allocations: 64 kB / 427.6 MB, free: 4.945 MB / 334.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.001184/0.6646, allocations: 0.4887 MB / 428.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003793/0.665, allocations: 154 kB / 428.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004145/0.6691, allocations: 1.68 MB / 429.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.6692, allocations: 8 kB / 429.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.6692, allocations: 4 kB / 429.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.6692, allocations: 3.984 kB / 429.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008666/0.6779, allocations: 3.885 MB / 433.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.6779, allocations: 8 kB / 433.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.679, allocations: 288.2 kB / 434.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001117/0.6792, allocations: 44.8 kB / 434.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.482e-05/0.6792, allocations: 28 kB / 434.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.6803, allocations: 1.278 MB / 435.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/0.6804, allocations: 11.94 kB / 435.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004887/0.6853, allocations: 2.366 MB / 437.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007884/0.6861, allocations: 315 kB / 438.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001752/0.6863, allocations: 32 kB / 438.2 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009189/0.6872, allocations: 135.9 kB / 438.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002424/0.6874, allocations: 132.2 kB / 438.4 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.203e-05/0.6875, allocations: 50.33 kB / 438.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001392/0.6889, allocations: 0.7825 MB / 439.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6889, allocations: 0 / 439.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002308/0.6913, allocations: 0.6016 MB / 439.9 MB, free: 8.125 MB / 350.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.0002303/0.6915, allocations: 154.9 kB / 440 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006619/0.6981, allocations: 2.927 MB / 442.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/0.6982, allocations: 0 / 442.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.6999, allocations: 0.7499 MB / 443.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/0.702, allocations: 334.2 kB / 444 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007797/0.7098, allocations: 4.308 MB / 448.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/0.7111, allocations: 1.341 MB / 449.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006252/0.7118, allocations: 107.4 kB / 449.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.7118, allocations: 0 / 449.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of Templates: time 0.04487/0.7567, allocations: 30.32 MB / 480.1 MB, free: 15.71 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile make -j1 -f Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPMCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPMCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPMCalcHelperMain.o] Error 1