Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008989/0.0008992, allocations: 92.78 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 180.1 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 223.2 MB / 240.9 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001732/0.001732, allocations: 265.9 kB / 292.3 MB, free: 1.836 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9836/0.9836, allocations: 169.5 MB / 0.501 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.0003948, allocations: 14.94 kB / 0.5993 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.1564, allocations: 88.54 MB / 0.6858 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002083/0.1585, allocations: 1.644 MB / 0.6874 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.1597, allocations: 0.7011 MB / 0.6881 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.494e-05/0.1598, allocations: 4 kB / 0.6881 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002015/0.16, allocations: 79.75 kB / 0.6881 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.1601, allocations: 81.75 kB / 0.6882 GB, free: 12.53 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004574/0.1606, allocations: 156.2 kB / 0.6884 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002472/0.1609, allocations: 239.4 kB / 0.6886 GB, free: 12.15 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.161, allocations: 71.5 kB / 0.6887 GB, free: 12.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.1611, allocations: 91.55 kB / 0.6888 GB, free: 12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.1613, allocations: 131.5 kB / 0.6889 GB, free: 11.87 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.1613, allocations: 4 kB / 0.6889 GB, free: 11.86 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.1615, allocations: 83.91 kB / 0.689 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.13e-05/0.1615, allocations: 36.53 kB / 0.689 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.833e-05/0.1616, allocations: 118.2 kB / 0.6891 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.1619, allocations: 215.5 kB / 0.6893 GB, free: 11.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1619, allocations: 0 / 0.6893 GB, free: 11.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1619, allocations: 4 kB / 0.6893 GB, free: 11.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.1619, allocations: 0.5 kB / 0.6893 GB, free: 11.41 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007281/0.1626, allocations: 0.55 MB / 0.6899 GB, free: 10.81 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.1627, allocations: 12.03 kB / 0.6899 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.361e-05/0.1627, allocations: 24.66 kB / 0.6899 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/0.1632, allocations: 306.8 kB / 0.6902 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.1632, allocations: 8.375 kB / 0.6902 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.1632, allocations: 20.38 kB / 0.6902 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003746/0.1636, allocations: 227.2 kB / 0.6904 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.1636, allocations: 0 / 0.6904 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.1637, allocations: 11.98 kB / 0.6904 GB, free: 10.15 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1637, allocations: 4 kB / 0.6904 GB, free: 10.15 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002431/0.1639, allocations: 136.3 kB / 0.6906 GB, free: 10.02 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007835/0.1647, allocations: 0.6887 MB / 0.6912 GB, free: 9.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003685/0.1651, allocations: 186.4 kB / 0.6914 GB, free: 9.078 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.1653, allocations: 101 kB / 0.6915 GB, free: 8.977 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.1653, allocations: 4 kB / 0.6915 GB, free: 8.973 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.1656, allocations: 176.9 kB / 0.6917 GB, free: 8.781 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.1656, allocations: 0 / 0.6917 GB, free: 8.781 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006444/0.1662, allocations: 392.9 kB / 0.6921 GB, free: 8.387 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.59e-05/0.1663, allocations: 132.5 kB / 0.6922 GB, free: 8.227 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.1666, allocations: 278.7 kB / 0.6925 GB, free: 7.949 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.1666, allocations: 29.7 kB / 0.6925 GB, free: 7.914 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1667, allocations: 160.2 kB / 0.6926 GB, free: 7.754 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.1668, allocations: 39.45 kB / 0.6927 GB, free: 7.715 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.886e-05/0.1668, allocations: 29.7 kB / 0.6927 GB, free: 7.68 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1669, allocations: 334.8 kB / 0.693 GB, free: 7.344 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.1671, allocations: 99.83 kB / 0.6931 GB, free: 7.246 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.1673, allocations: 133.9 kB / 0.6932 GB, free: 7.098 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.1676, allocations: 252.2 kB / 0.6935 GB, free: 6.828 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1676, allocations: 96 / 0.6935 GB, free: 6.828 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004771/0.1681, allocations: 350.7 kB / 0.6938 GB, free: 6.473 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.368e-05/0.1682, allocations: 43.56 kB / 0.6939 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1682, allocations: 0 / 0.6939 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1682, allocations: 4 kB / 0.6939 GB, free: 6.422 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.1683, allocations: 23.98 kB / 0.6939 GB, free: 6.398 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.1683, allocations: 0 / 0.6939 GB, free: 6.398 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.1685, allocations: 35.92 kB / 0.6939 GB, free: 6.363 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.1685, allocations: 4 kB / 0.6939 GB, free: 6.359 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001647/0.1687, allocations: 196.7 kB / 0.6941 GB, free: 6.152 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.388e-05/0.1687, allocations: 23.72 kB / 0.6941 GB, free: 6.129 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.1688, allocations: 29.83 kB / 0.6942 GB, free: 6.102 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.1688, allocations: 4 kB / 0.6942 GB, free: 6.098 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1688, allocations: 4 kB / 0.6942 GB, free: 6.094 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.1688, allocations: 0 / 0.6942 GB, free: 6.094 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/0.169, allocations: 293.4 kB / 0.6945 GB, free: 5.758 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.169, allocations: 0 / 0.6945 GB, free: 5.758 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.966e-05/0.1691, allocations: 16 kB / 0.6945 GB, free: 5.742 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1692, allocations: 0 / 0.6945 GB, free: 5.742 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.1692, allocations: 7.984 kB / 0.6945 GB, free: 5.734 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.1692, allocations: 0 / 0.6945 GB, free: 5.734 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1692, allocations: 3.938 kB / 0.6945 GB, free: 5.73 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006772/0.1699, allocations: 478.2 kB / 0.6949 GB, free: 5.238 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-05/0.1699, allocations: 104.8 kB / 0.695 GB, free: 5.117 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.95e-05/0.17, allocations: 8 kB / 0.695 GB, free: 5.109 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.1701, allocations: 20.05 kB / 0.6951 GB, free: 5.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.292e-05/0.1702, allocations: 23.95 kB / 0.6951 GB, free: 5.066 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.1702, allocations: 7.938 kB / 0.6951 GB, free: 5.059 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001703/0.1704, allocations: 202 kB / 0.6953 GB, free: 4.863 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.463e-06/0.1704, allocations: 0 / 0.6953 GB, free: 4.863 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.1707, allocations: 55.94 kB / 0.6953 GB, free: 4.809 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001819/0.1709, allocations: 140.2 kB / 0.6955 GB, free: 4.668 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004596/0.1713, allocations: 303.2 kB / 0.6958 GB, free: 4.359 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1713, allocations: 0 / 0.6958 GB, free: 4.359 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.1716, allocations: 187.5 kB / 0.6959 GB, free: 4.164 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.1719, allocations: 35.06 kB / 0.696 GB, free: 4.129 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009394/0.1728, allocations: 0.5825 MB / 0.6965 GB, free: 3.508 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.1731, allocations: 0.7556 MB / 0.6973 GB, free: 2.727 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.817e-05/0.1732, allocations: 19.44 kB / 0.6973 GB, free: 2.707 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1732, allocations: 0 / 0.6973 GB, free: 2.707 MB / 494.1 MB Notification: Performance of Templates: time 0.00473/0.1779, allocations: 2.954 MB / 0.7002 GB, free: 15.76 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotorCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotorCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotorCalcHelperMain.o] Error 1