Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.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.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009788/0.0009788, allocations: 96.17 kB / 17.63 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 198.7 kB / 18.54 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.626/1.626, allocations: 227.3 MB / 246.6 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002506, allocations: 8 kB / 307.3 MB, free: 1.375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1245, allocations: 51.5 MB / 358.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.3262/0.4507, allocations: 20.67 MB / 379.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0191/0.4699, allocations: 6.477 MB / 385.9 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007054/0.477, allocations: 96.69 kB / 386 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003762/0.4808, allocations: 0.6229 MB / 386.7 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006049/0.4869, allocations: 0.7059 MB / 387.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002939/0.4898, allocations: 484.7 kB / 387.8 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008578/0.4984, allocations: 3.107 MB / 391 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00358/0.5021, allocations: 1.294 MB / 392.2 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003448/0.5055, allocations: 0.9639 MB / 393.2 MB, free: 3.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003676/0.5093, allocations: 1.089 MB / 394.3 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007646/0.51, allocations: 155.7 kB / 394.4 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00163/0.5117, allocations: 190.9 kB / 394.6 MB, free: 2.781 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005082/0.5122, allocations: 449.7 kB / 395.1 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.5137, allocations: 0.5661 MB / 395.6 MB, free: 2.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004957/0.5187, allocations: 3.586 MB / 399.2 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.989e-06/0.5187, allocations: 0 / 399.2 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.5187, allocations: 5.188 kB / 399.2 MB, free: 15.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001611/0.5189, allocations: 0 / 399.2 MB, free: 15.68 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.00713/0.526, allocations: 2.607 MB / 401.8 MB, free: 13.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/0.5261, allocations: 8.25 kB / 401.8 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.5277, allocations: 370.2 kB / 402.2 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003674/0.5314, allocations: 1.408 MB / 403.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002391/0.5317, allocations: 193.7 kB / 403.8 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000499/0.5322, allocations: 262.5 kB / 404.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006117/0.5383, allocations: 2.465 MB / 406.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.197e-05/0.5385, allocations: 12.28 kB / 406.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/0.5387, allocations: 110.8 kB / 406.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.511e-05/0.5388, allocations: 63.88 kB / 406.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003884/0.5427, allocations: 1.677 MB / 408.4 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01959/0.5623, allocations: 10.37 MB / 418.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001935/0.5643, allocations: 0.8708 MB / 419.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009778/0.5653, allocations: 0.4959 MB / 420.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.508e-05/0.5654, allocations: 9 kB / 420.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.427e-05/0.5655, allocations: 47.5 kB / 420.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 4.148e-06/0.5655, allocations: 0 / 420.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.006445/0.5719, allocations: 2.774 MB / 423 MB, free: 11.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.553e-05/0.5721, allocations: 115.8 kB / 423.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00264/0.5747, allocations: 1.549 MB / 424.6 MB, free: 9.695 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.847e-05/0.5748, allocations: 45.64 kB / 424.7 MB, free: 9.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.5759, allocations: 1.288 MB / 425.9 MB, free: 8.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003636/0.5763, allocations: 335.4 kB / 426.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.843e-05/0.5763, allocations: 32 kB / 426.3 MB, free: 7.977 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.5765, allocations: 365.9 kB / 426.7 MB, free: 7.613 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008393/0.5774, allocations: 419.8 kB / 427.1 MB, free: 7.203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.5788, allocations: 1.127 MB / 428.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.5798, allocations: 0.5885 MB / 428.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.5798, allocations: 8 kB / 428.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003346/0.5832, allocations: 1.703 MB / 430.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007395/0.5839, allocations: 0.7905 MB / 431.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.213e-05/0.584, allocations: 24 kB / 431.3 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002479/0.5842, allocations: 56.84 kB / 431.4 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.5855, allocations: 407.4 kB / 431.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.5869, allocations: 1.33 MB / 433.1 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/0.5888, allocations: 95.97 kB / 433.2 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/0.5889, allocations: 80 kB / 433.3 MB, free: 204 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.589, allocations: 4 kB / 433.3 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002967/0.5919, allocations: 1.458 MB / 434.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-05/0.592, allocations: 27.95 kB / 434.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001795/0.5922, allocations: 61.56 kB / 434.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.5934, allocations: 387.3 kB / 435.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.5948, allocations: 1.327 MB / 436.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002115/0.5969, allocations: 88 kB / 436.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/0.5971, allocations: 80 kB / 436.7 MB, free: 12.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 3 (switch.control,dcdcInverter2.idealDcDc.powerController.local_reset,dcdcInverter1.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 211 * 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.001917/0.599, allocations: 0.5511 MB / 437.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004765/0.5995, allocations: 177.8 kB / 437.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002039/0.6015, allocations: 0.9461 MB / 438.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.6016, allocations: 8 kB / 438.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.6016, allocations: 0 / 438.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.6016, allocations: 7.984 kB / 438.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006619/0.6082, allocations: 2.933 MB / 441.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.726e-05/0.6083, allocations: 8 kB / 441.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008252/0.6091, allocations: 192.2 kB / 441.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001335/0.6093, allocations: 28.84 kB / 441.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.88e-05/0.6093, allocations: 28 kB / 441.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/0.6108, allocations: 1.284 MB / 442.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/0.6109, allocations: 4 kB / 442.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002897/0.6138, allocations: 1.516 MB / 444.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008383/0.6146, allocations: 326.8 kB / 444.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003579/0.615, allocations: 24 kB / 444.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000837/0.6158, allocations: 67.95 kB / 444.8 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.616, allocations: 76.39 kB / 444.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.416e-05/0.6161, allocations: 28 kB / 444.9 MB, free: 4.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001886/0.618, allocations: 1.012 MB / 445.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.618, allocations: 0 / 445.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003709/0.6217, allocations: 0.7656 MB / 446.7 MB, free: 2.328 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 16 (dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.la.i,coupling.flange_a.phi,dcdcInverter1.vDCFilter.y,dcdcInverter1.iMotFilter.y,dcdcInverter1.idealDcDc.deadTime.y,dcdcInverter1.idealDcDc.powerController.y,dcdcInverter1.vMotFilter.y,dcdcInverter1.iDCFilter.y,dcdcInverter2.vDCFilter.y,dcdcInverter2.iMotFilter.y,dcdcInverter2.idealDcDc.deadTime.y,dcdcInverter2.idealDcDc.powerController.y,dcdcInverter2.vMotFilter.y,dcdcInverter2.iDCFilter.y) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 87 * 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.0004417/0.6221, allocations: 141.3 kB / 446.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00443/0.6266, allocations: 2.054 MB / 448.8 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/0.6266, allocations: 0 / 448.8 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.6277, allocations: 0.5392 MB / 449.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003364/0.6311, allocations: 427.4 kB / 449.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.6436, allocations: 4.885 MB / 454.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001894/0.6456, allocations: 1.475 MB / 456.2 MB, free: 8.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006823/0.6463, allocations: 119.4 kB / 456.3 MB, free: 8.543 MB / 366.1 MB Notification: Performance of SimCode: time 2.695e-06/0.6463, allocations: 3.938 kB / 456.3 MB, free: 8.539 MB / 366.1 MB Notification: Performance of Templates: time 0.07231/0.7186, allocations: 35.68 MB / 492 MB, free: 4.879 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.makefile make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.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.DCMachines.DCPM_DriveCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_DriveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_DriveCalcHelperMain.o] Error 1