Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007909/0.0007906, allocations: 97.53 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.0008847/0.0008845, allocations: 198.8 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.524/1.524, allocations: 227.3 MB / 246.6 MB, free: 12.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2492/0.2492, allocations: 45.92 MB / 344.7 MB, free: 12.27 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002812/0.0002812, allocations: 4 kB / 418.7 MB, free: 20.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1518, allocations: 63.46 MB / 482.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.004426/0.1563, allocations: 3.465 MB / 485.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002266/0.1586, allocations: 1.391 MB / 487 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003253/0.159, allocations: 11.94 kB / 487 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005721/0.1595, allocations: 210.7 kB / 487.2 MB, free: 348 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002211/0.1598, allocations: 107.1 kB / 487.3 MB, free: 240 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.1601, allocations: 127.8 kB / 487.4 MB, free: 112 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006049/0.1607, allocations: 0.5648 MB / 488 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003501/0.1611, allocations: 195.3 kB / 488.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003119/0.1614, allocations: 187.1 kB / 488.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002642/0.1617, allocations: 206.8 kB / 488.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.624e-05/0.1618, allocations: 28 kB / 488.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.559e-05/0.1618, allocations: 24 kB / 488.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.085e-05/0.1619, allocations: 87.61 kB / 488.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.162, allocations: 121.4 kB / 488.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00051/0.1626, allocations: 0.53 MB / 489.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1626, allocations: 0 / 489.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1626, allocations: 4 kB / 489.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1626, allocations: 0 / 489.3 MB, free: 14.16 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.00124/0.1638, allocations: 0.7558 MB / 490.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.1639, allocations: 16.02 kB / 490.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.164, allocations: 59.25 kB / 490.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000542/0.1646, allocations: 390.5 kB / 490.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/0.1646, allocations: 37 kB / 490.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.547e-05/0.1647, allocations: 44 kB / 490.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007676/0.1655, allocations: 462.9 kB / 491.1 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.1655, allocations: 4 kB / 491.1 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.854e-05/0.1655, allocations: 20 kB / 491.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.1656, allocations: 12 kB / 491.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005832/0.1662, allocations: 311.8 kB / 491.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/0.1686, allocations: 1.7 MB / 493.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008275/0.1694, allocations: 425.7 kB / 493.5 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.1696, allocations: 120.2 kB / 493.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.1697, allocations: 7.984 kB / 493.7 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.1697, allocations: 34.56 kB / 493.7 MB, free: 9.574 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 4.148e-06/0.1697, allocations: 4 kB / 493.7 MB, free: 9.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001648/0.1714, allocations: 0.9123 MB / 494.6 MB, free: 8.586 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.1714, allocations: 59.36 kB / 494.7 MB, free: 8.516 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004806/0.1719, allocations: 393.7 kB / 495.1 MB, free: 8.125 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.172, allocations: 29.7 kB / 495.1 MB, free: 8.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.1722, allocations: 287.8 kB / 495.4 MB, free: 7.805 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.336e-05/0.1723, allocations: 82.72 kB / 495.4 MB, free: 7.723 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.551e-05/0.1723, allocations: 8 kB / 495.5 MB, free: 7.715 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.1724, allocations: 346.8 kB / 495.8 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.1726, allocations: 99.95 kB / 495.9 MB, free: 7.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.1729, allocations: 151.4 kB / 496 MB, free: 7.098 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.1731, allocations: 115.9 kB / 496.2 MB, free: 6.984 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1731, allocations: 4 kB / 496.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006231/0.1738, allocations: 363 kB / 496.5 MB, free: 6.617 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.1739, allocations: 147.1 kB / 496.7 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.1739, allocations: 7.938 kB / 496.7 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001507/0.1741, allocations: 24.84 kB / 496.7 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002772/0.1744, allocations: 67.91 kB / 496.8 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/0.1754, allocations: 1.284 MB / 498 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.1756, allocations: 16 kB / 498.1 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.1756, allocations: 12 kB / 498.1 MB, free: 4.898 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.901e-06/0.1757, allocations: 8.156 kB / 498.1 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004429/0.1761, allocations: 256.6 kB / 498.3 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1761, allocations: 4 kB / 498.3 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.695e-05/0.1762, allocations: 32.95 kB / 498.4 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.1765, allocations: 67.91 kB / 498.4 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008464/0.1773, allocations: 1.288 MB / 499.7 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.1775, allocations: 8 kB / 499.7 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.1775, allocations: 16 kB / 499.7 MB, free: 3.09 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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.0002908/0.1778, allocations: 245 kB / 500 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.663e-05/0.1779, allocations: 43.47 kB / 0.4883 GB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.853e-05/0.178, allocations: 43.47 kB / 0.4883 GB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.178, allocations: 7.984 kB / 0.4883 GB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.178, allocations: 4.094 kB / 0.4884 GB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.178, allocations: 0 / 0.4884 GB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.1792, allocations: 0.8561 MB / 0.4892 GB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1792, allocations: 0 / 0.4892 GB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002575/0.1795, allocations: 55.97 kB / 0.4892 GB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.014e-05/0.1796, allocations: 20.84 kB / 0.4893 GB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.1796, allocations: 12.06 kB / 0.4893 GB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009963/0.1806, allocations: 1.276 MB / 0.4905 GB, free: 328 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1806, allocations: 0 / 0.4905 GB, free: 328 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007401/0.1814, allocations: 0.4969 MB / 0.491 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.075e-05/0.1815, allocations: 116.8 kB / 0.4911 GB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.335e-05/0.1815, allocations: 15.98 kB / 0.4911 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.1817, allocations: 20 kB / 0.4911 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.314e-05/0.1818, allocations: 19.97 kB / 0.4912 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.1818, allocations: 7.953 kB / 0.4912 GB, free: 15.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00031/0.1821, allocations: 283.2 kB / 0.4914 GB, free: 15.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1821, allocations: 0 / 0.4914 GB, free: 15.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005816/0.1827, allocations: 140 kB / 0.4916 GB, free: 15.19 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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.0001692/0.1829, allocations: 107.2 kB / 0.4917 GB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.184, allocations: 0.5957 MB / 0.4923 GB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.184, allocations: 0 / 0.4923 GB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.1844, allocations: 239.3 kB / 0.4925 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006702/0.185, allocations: 72.2 kB / 0.4926 GB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.1873, allocations: 1.294 MB / 0.4938 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005545/0.1879, allocations: 0.831 MB / 0.4946 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.188, allocations: 31.44 kB / 0.4947 GB, free: 11.91 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.188, allocations: 0 / 0.4947 GB, free: 11.91 MB / 382.1 MB Notification: Performance of Templates: time 0.01053/0.1985, allocations: 7.099 MB / 0.5016 GB, free: 4.816 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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 OMCppModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlledCalcHelperMain.o OMCppModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlledCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlledCalcHelperMain.o] Error 1