Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.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) 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(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009245/0.0009245, allocations: 88.84 kB / 17.95 MB, free: 5.633 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.00117/0.00117, allocations: 176.3 kB / 18.86 MB, free: 4.762 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.999/1.999, allocations: 205.4 MB / 225 MB, free: 13.07 MB / 190.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.0005257/0.0005257, allocations: 12 kB / 282 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1129, allocations: 47.59 MB / 329.6 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003365/0.1163, allocations: 1.924 MB / 331.5 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002301/0.1186, allocations: 0.9364 MB / 332.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002913/0.119, allocations: 0 / 332.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005309/0.1195, allocations: 87.69 kB / 332.6 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005509/0.1201, allocations: 99.42 kB / 332.6 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005149/0.1206, allocations: 107.8 kB / 332.8 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006414/0.1213, allocations: 270.8 kB / 333 MB, free: 336 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000251/0.1215, allocations: 88.78 kB / 333.1 MB, free: 248 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.1218, allocations: 95.58 kB / 333.2 MB, free: 152 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.122, allocations: 111.5 kB / 333.3 MB, free: 40 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.184e-05/0.122, allocations: 8 kB / 333.3 MB, free: 32 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001791/0.1222, allocations: 44.33 kB / 333.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.962e-05/0.1223, allocations: 59.64 kB / 333.4 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.1225, allocations: 129.1 kB / 333.5 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.1227, allocations: 203.5 kB / 333.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1228, allocations: 0 / 333.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1228, allocations: 0 / 333.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1228, allocations: 0 / 333.7 MB, free: 15.6 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0008295/0.1236, allocations: 0.4991 MB / 334.2 MB, free: 15.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.1237, allocations: 16.03 kB / 334.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001662/0.1238, allocations: 24.66 kB / 334.3 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003254/0.1242, allocations: 256.8 kB / 334.5 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.1242, allocations: 12.38 kB / 334.5 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.119e-05/0.1243, allocations: 24.12 kB / 334.6 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003505/0.1246, allocations: 169.1 kB / 334.7 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.1247, allocations: 0 / 334.7 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.1247, allocations: 4 kB / 334.7 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1247, allocations: 8 kB / 334.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002706/0.125, allocations: 115.9 kB / 334.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.126, allocations: 0.5585 MB / 335.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.1264, allocations: 162.5 kB / 335.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.1265, allocations: 88.81 kB / 335.7 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.1266, allocations: 3.984 kB / 335.7 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.1269, allocations: 123.5 kB / 335.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.1269, allocations: 0 / 335.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005164/0.1274, allocations: 237.2 kB / 336 MB, free: 13.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.1275, allocations: 51.41 kB / 336.1 MB, free: 13.08 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003572/0.1278, allocations: 253 kB / 336.3 MB, free: 12.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.1279, allocations: 29.7 kB / 336.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.128, allocations: 152.2 kB / 336.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.1282, allocations: 71 kB / 336.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.571e-05/0.1282, allocations: 17.72 kB / 336.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.1284, allocations: 342.8 kB / 336.9 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.1286, allocations: 55.97 kB / 337 MB, free: 12.14 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.1288, allocations: 83.34 kB / 337.1 MB, free: 12.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.1291, allocations: 143.3 kB / 337.2 MB, free: 11.9 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1291, allocations: 4 kB / 337.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000352/0.1294, allocations: 205.3 kB / 337.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.319e-05/0.1295, allocations: 4 kB / 337.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1295, allocations: 0 / 337.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.1296, allocations: 4 kB / 337.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.1298, allocations: 43.92 kB / 337.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.1298, allocations: 3.938 kB / 337.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.1299, allocations: 31.83 kB / 337.5 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.13, allocations: 12 kB / 337.5 MB, free: 11.59 MB / 286.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: 5 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0002759/0.1302, allocations: 141.8 kB / 337.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.684e-05/0.1303, allocations: 19.81 kB / 337.6 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.501e-05/0.1304, allocations: 26.17 kB / 337.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.1304, allocations: 4 kB / 337.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.1304, allocations: 7.875 kB / 337.7 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.289e-06/0.1304, allocations: 0 / 337.7 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003602/0.1308, allocations: 285.4 kB / 338 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.1308, allocations: 8 kB / 338 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.131, allocations: 35.98 kB / 338 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.131, allocations: 0 / 338 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.131, allocations: 7.984 kB / 338 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-06/0.131, allocations: 4 kB / 338 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/0.131, allocations: 3.938 kB / 338 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004749/0.1315, allocations: 280.9 kB / 338.3 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.543e-05/0.1316, allocations: 100.8 kB / 338.4 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.1316, allocations: 8.062 kB / 338.4 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.89e-05/0.1317, allocations: 11.94 kB / 338.4 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.1318, allocations: 11.98 kB / 338.4 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.178e-05/0.1318, allocations: 7.984 kB / 338.4 MB, free: 10.55 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002413/0.132, allocations: 184.5 kB / 338.6 MB, free: 10.37 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.132, allocations: 3.938 kB / 338.6 MB, free: 10.36 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002777/0.1323, allocations: 59.94 kB / 338.7 MB, free: 10.3 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001054/0.1334, allocations: 412 kB / 339.1 MB, free: 9.91 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003528/0.1338, allocations: 147.8 kB / 339.2 MB, free: 9.766 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1338, allocations: 0 / 339.2 MB, free: 9.766 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.1339, allocations: 76.72 kB / 339.3 MB, free: 9.691 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.1343, allocations: 52.56 kB / 339.4 MB, free: 9.641 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.1354, allocations: 0.6879 MB / 340 MB, free: 8.922 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.1359, allocations: 0.7482 MB / 340.8 MB, free: 8.148 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.504e-05/0.136, allocations: 23.44 kB / 340.8 MB, free: 8.125 MB / 286.1 MB Notification: Performance of SimCode: time 2e-07/0.136, allocations: 0 / 340.8 MB, free: 8.125 MB / 286.1 MB Notification: Performance of Templates: time 0.005906/0.1419, allocations: 3.103 MB / 343.9 MB, free: 5.012 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.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 OMCppModelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.MotorCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.MotorCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.MotorCalcHelperMain.o] Error 1