Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009745/0.0009744, allocations: 91.56 kB / 16.95 MB, free: 5.641 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.001244/0.001244, allocations: 186.1 kB / 17.85 MB, free: 5.297 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.569/1.569, allocations: 223.2 MB / 241.9 MB, free: 14.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003212/0.0003213, allocations: 4 kB / 301.5 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1417, allocations: 50.42 MB / 351.9 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01331/0.155, allocations: 10.75 MB / 362.6 MB, free: 9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008356/0.1635, allocations: 3.091 MB / 365.7 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002873/0.1664, allocations: 39.88 kB / 365.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002971/0.1694, allocations: 0.5164 MB / 366.3 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00425/0.1737, allocations: 0.6087 MB / 366.9 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001581/0.1753, allocations: 243.8 kB / 367.1 MB, free: 4.492 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004511/0.1798, allocations: 2.167 MB / 369.3 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001954/0.1818, allocations: 0.6755 MB / 370 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001895/0.1837, allocations: 0.7233 MB / 370.7 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001952/0.1857, allocations: 0.8049 MB / 371.5 MB, free: 80 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2696/0.4553, allocations: 105.1 kB / 371.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001496/0.4569, allocations: 140.9 kB / 371.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004047/0.4573, allocations: 315.5 kB / 372 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007699/0.4581, allocations: 406.3 kB / 372.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003338/0.4614, allocations: 2.222 MB / 374.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.4615, allocations: 0.75 kB / 374.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.4615, allocations: 0 / 374.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.625e-05/0.4615, allocations: 2.344 kB / 374.7 MB, free: 11.88 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004393/0.4659, allocations: 1.862 MB / 376.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.466, allocations: 10.72 kB / 376.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/0.467, allocations: 282.8 kB / 376.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001999/0.4691, allocations: 1.068 MB / 377.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.4692, allocations: 118.6 kB / 378 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002428/0.4694, allocations: 160.6 kB / 378.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003178/0.4726, allocations: 1.501 MB / 379.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.365e-05/0.4727, allocations: 10.09 kB / 379.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001508/0.4728, allocations: 70.64 kB / 379.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.723e-05/0.4729, allocations: 38.22 kB / 379.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002439/0.4753, allocations: 1.059 MB / 380.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01378/0.4891, allocations: 6.31 MB / 387.1 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002558/0.4918, allocations: 0.63 MB / 387.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.4933, allocations: 458.6 kB / 388.2 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.661e-05/0.4934, allocations: 12.2 kB / 388.2 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.4934, allocations: 40.34 kB / 388.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 3.557e-06/0.4934, allocations: 0 / 388.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.008564/0.502, allocations: 2.465 MB / 390.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.5021, allocations: 112 kB / 390.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00343/0.5056, allocations: 1.283 MB / 392.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.245e-05/0.5057, allocations: 38.27 kB / 392.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009146/0.5066, allocations: 0.849 MB / 393 MB, free: 5.172 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002607/0.5069, allocations: 267.9 kB / 393.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.729e-05/0.5069, allocations: 20.16 kB / 393.3 MB, free: 4.934 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.5071, allocations: 351.6 kB / 393.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008707/0.508, allocations: 287.6 kB / 393.9 MB, free: 4.461 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.5092, allocations: 0.7497 MB / 394.7 MB, free: 3.707 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.5103, allocations: 404.5 kB / 395.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.414e-05/0.5103, allocations: 8.625 kB / 395.1 MB, free: 3.512 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003962/0.5143, allocations: 1.289 MB / 396.4 MB, free: 2.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.097e-05/0.5144, allocations: 12.47 kB / 396.4 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.549e-05/0.5144, allocations: 19.03 kB / 396.4 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007488/0.5152, allocations: 147.9 kB / 396.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.5165, allocations: 258.2 kB / 396.8 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004785/0.5213, allocations: 4.331 MB / 401.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002077/0.5234, allocations: 58.58 kB / 401.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.5235, allocations: 57.39 kB / 401.2 MB, free: 14.51 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001313/0.5249, allocations: 358.7 kB / 401.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004038/0.5253, allocations: 138.9 kB / 401.7 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002556/0.5278, allocations: 0.866 MB / 402.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.5279, allocations: 7.219 kB / 402.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.5279, allocations: 3.781 kB / 402.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.5279, allocations: 3.984 kB / 402.6 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007098/0.535, allocations: 2.373 MB / 405 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.5351, allocations: 6.938 kB / 405 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008365/0.5359, allocations: 131.6 kB / 405.1 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006393/0.5366, allocations: 144 kB / 405.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.634e-05/0.5367, allocations: 18.66 kB / 405.3 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005646/0.5423, allocations: 4.458 MB / 409.7 MB, free: 7.582 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/0.5424, allocations: 9.031 kB / 409.7 MB, free: 7.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003918/0.5463, allocations: 1.344 MB / 411.1 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001324/0.5476, allocations: 279.4 kB / 411.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007506/0.5484, allocations: 20 kB / 411.4 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.5497, allocations: 47.92 kB / 411.4 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.5499, allocations: 58.11 kB / 411.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-05/0.5499, allocations: 24 kB / 411.5 MB, free: 6.039 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002426/0.5524, allocations: 0.8703 MB / 412.4 MB, free: 5.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.5524, allocations: 0 / 412.4 MB, free: 5.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002632/0.555, allocations: 332 kB / 412.7 MB, free: 4.844 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003935/0.5554, allocations: 140.8 kB / 412.8 MB, free: 4.711 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002961/0.5584, allocations: 1.13 MB / 414 MB, free: 3.598 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.5584, allocations: 4 kB / 414 MB, free: 3.594 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.5599, allocations: 0.7155 MB / 414.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003248/0.5632, allocations: 352.5 kB / 415 MB, free: 2.516 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.574, allocations: 3.623 MB / 418.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00171/0.5758, allocations: 1.214 MB / 419.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005105/0.5763, allocations: 103.4 kB / 420 MB, free: 13.47 MB / 334.1 MB Notification: Performance of SimCode: time 2.645e-06/0.5763, allocations: 0 / 420 MB, free: 13.47 MB / 334.1 MB Notification: Performance of Templates: time 0.07104/0.6474, allocations: 40.65 MB / 460.6 MB, free: 4.906 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLossesCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLossesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLossesCalcHelperMain.o] Error 1