Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008359/0.000836, allocations: 89.14 kB / 16.95 MB, free: 5.953 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.001005/0.001005, allocations: 178.7 kB / 17.84 MB, free: 5.617 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.594/1.594, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1769/0.1769, allocations: 38.05 MB / 310.3 MB, free: 6.023 MB / 254.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.0007395/0.0007395, allocations: 12 kB / 377.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2539, allocations: 56.33 MB / 433.5 MB, free: 18.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004459/0.2584, allocations: 5.394 MB / 438.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.2605, allocations: 1.778 MB / 440.6 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002702/0.2608, allocations: 31.81 kB / 440.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003089/0.2611, allocations: 119.1 kB / 440.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005817/0.2617, allocations: 346 kB / 441.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003309/0.2621, allocations: 167.2 kB / 441.3 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005574/0.2626, allocations: 0.7434 MB / 442 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003156/0.2629, allocations: 321.2 kB / 442.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.2632, allocations: 227 kB / 442.6 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000261/0.2634, allocations: 270.9 kB / 442.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.679e-05/0.2635, allocations: 24 kB / 442.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.188e-05/0.2635, allocations: 24 kB / 442.9 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.941e-05/0.2636, allocations: 127.6 kB / 443 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.55e-05/0.2637, allocations: 121.5 kB / 443.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.264, allocations: 458.8 kB / 443.6 MB, free: 8.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.264, allocations: 4 kB / 443.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.264, allocations: 0 / 443.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.264, allocations: 0 / 443.6 MB, free: 8.836 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.0008866/0.2649, allocations: 0.6957 MB / 444.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.2649, allocations: 11.98 kB / 444.3 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.411e-05/0.265, allocations: 67.23 kB / 444.4 MB, free: 8.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00047/0.2655, allocations: 422.8 kB / 444.8 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.499e-05/0.2656, allocations: 62.7 kB / 444.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.264e-05/0.2656, allocations: 40 kB / 444.9 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006048/0.2662, allocations: 0.5047 MB / 445.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.2663, allocations: 7.906 kB / 445.4 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.2663, allocations: 19.98 kB / 445.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.2663, allocations: 11.95 kB / 445.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004844/0.2668, allocations: 351.7 kB / 445.8 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.2684, allocations: 1.98 MB / 447.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.2688, allocations: 235.5 kB / 448 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001546/0.2689, allocations: 98.66 kB / 448.1 MB, free: 4.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.269, allocations: 4 kB / 448.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.269, allocations: 42.5 kB / 448.1 MB, free: 4.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.343e-06/0.269, allocations: 0 / 448.1 MB, free: 4.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001257/0.2703, allocations: 0.8579 MB / 449 MB, free: 3.102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.2703, allocations: 110.9 kB / 449.1 MB, free: 2.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.2706, allocations: 333.5 kB / 449.4 MB, free: 2.633 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.2706, allocations: 29.7 kB / 449.4 MB, free: 2.598 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.2707, allocations: 267.7 kB / 449.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.2707, allocations: 78.84 kB / 449.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.2707, allocations: 8 kB / 449.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.902e-05/0.2708, allocations: 346.8 kB / 450.1 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.271, allocations: 91.89 kB / 450.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.2712, allocations: 217.1 kB / 450.4 MB, free: 1.535 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005861/0.2718, allocations: 305 kB / 450.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2718, allocations: 4 kB / 450.7 MB, free: 1.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006398/0.2724, allocations: 427.2 kB / 451.1 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.2725, allocations: 8 kB / 451.1 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2725, allocations: 4 kB / 451.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000258/0.2727, allocations: 80.97 kB / 451.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.273, allocations: 67.91 kB / 451.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.2746, allocations: 1.763 MB / 453.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.2748, allocations: 15.98 kB / 453.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.2748, allocations: 20 kB / 453.1 MB, free: 14.69 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000199/0.275, allocations: 189.8 kB / 453.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-05/0.2751, allocations: 31.62 kB / 453.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.661e-05/0.2752, allocations: 39.31 kB / 453.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.2752, allocations: 3.953 kB / 453.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.2752, allocations: 4 kB / 453.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2752, allocations: 0 / 453.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001152/0.2763, allocations: 0.7882 MB / 454.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.2764, allocations: 4 kB / 454.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.2766, allocations: 47.94 kB / 454.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.661e-05/0.2767, allocations: 24.84 kB / 454.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.2767, allocations: 8 kB / 454.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008566/0.2776, allocations: 1.28 MB / 455.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2776, allocations: 0 / 455.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006756/0.2782, allocations: 0.5125 MB / 456 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.2784, allocations: 120.8 kB / 456.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.312e-05/0.2784, allocations: 0 / 456.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.2786, allocations: 16 kB / 456.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.395e-05/0.2787, allocations: 27.86 kB / 456.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.2787, allocations: 4 kB / 456.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002121/0.2789, allocations: 227.2 kB / 456.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2789, allocations: 0 / 456.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004513/0.2794, allocations: 92 kB / 456.5 MB, free: 11.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001191/0.2795, allocations: 103.3 kB / 456.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006495/0.2801, allocations: 378.9 kB / 457 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2802, allocations: 0 / 457 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.2805, allocations: 218.6 kB / 457.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005927/0.2811, allocations: 97.95 kB / 457.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.2826, allocations: 1.222 MB / 458.5 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.283, allocations: 0.8389 MB / 459.3 MB, free: 8.078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.721e-05/0.2831, allocations: 31.44 kB / 459.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2831, allocations: 0 / 459.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of Templates: time 0.008354/0.2915, allocations: 6.855 MB / 466.2 MB, free: 1.184 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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 OMCppPowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pmCalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pmCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pmCalcHelperMain.o] Error 1