Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.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) 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001098, allocations: 88.39 kB / 17.63 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 202.3 kB / 18.54 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.614/1.614, allocations: 227.3 MB / 246.6 MB, free: 12.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003376, allocations: 4 kB / 307.3 MB, free: 1.605 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1843, allocations: 51.49 MB / 358.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.3656/0.55, allocations: 21.53 MB / 380.3 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02006/0.5701, allocations: 7.249 MB / 387.6 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00943/0.5796, allocations: 155.7 kB / 387.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006703/0.5863, allocations: 1.142 MB / 388.9 MB, free: 6.098 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_FieldWeakening.mo:75:15-75:22:writable] Warning: 'each' used when modifying non-array element re. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_FieldWeakening.mo:75:33-75:40:writable] Warning: 'each' used when modifying non-array element im. Notification: Performance of NFTyping.typeBindings: time 0.01038/0.5968, allocations: 2.107 MB / 391 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00623/0.603, allocations: 1.199 MB / 392.2 MB, free: 4.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01844/0.6215, allocations: 8.991 MB / 401.2 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03121/0.6527, allocations: 12.06 MB / 413.2 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009244/0.662, allocations: 2.908 MB / 416.1 MB, free: 3.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008596/0.6707, allocations: 3.401 MB / 419.5 MB, free: 64 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003271/0.674, allocations: 440 kB / 420 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006408/0.6804, allocations: 0.7691 MB / 420.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003406/0.6839, allocations: 1.397 MB / 422.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004755/0.6886, allocations: 1.451 MB / 423.6 MB, free: 12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01859/0.7073, allocations: 12.61 MB / 436.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.7073, allocations: 0 / 436.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.947e-06/0.7073, allocations: 0 / 436.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005377/0.7079, allocations: 0 / 436.2 MB, free: 15.35 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.02628/0.7342, allocations: 7.778 MB / 444 MB, free: 7.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.032e-05/0.7342, allocations: 8.031 kB / 444 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0288/0.763, allocations: 5.332 MB / 449.3 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.7761, allocations: 4.556 MB / 453.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000764/0.7769, allocations: 0.5097 MB / 454.4 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003628/0.7806, allocations: 0.6756 MB / 455.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03878/0.8194, allocations: 11.12 MB / 466.2 MB, free: 1.121 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006493/0.8201, allocations: 7.906 kB / 466.2 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004014/0.8242, allocations: 292 kB / 466.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005763/0.8248, allocations: 426.5 kB / 466.9 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02879/0.8536, allocations: 10.68 MB / 477.6 MB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08241/0.936, allocations: 36.36 MB / 0.5019 GB, free: 388 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01577/0.9519, allocations: 11.89 MB / 0.5135 GB, free: 3.371 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005794/0.9578, allocations: 2.845 MB / 0.5163 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006976/0.9585, allocations: 245 kB / 0.5165 GB, free: 252 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001059/0.9586, allocations: 69.44 kB / 0.5166 GB, free: 172 kB / 430.1 MB Notification: Performance of pre-optimization done (n=365): time 1.013e-05/0.9587, allocations: 0 / 0.5166 GB, free: 172 kB / 430.1 MB Notification: Performance of matching and sorting (n=375): time 0.399/1.358, allocations: 17.5 MB / 0.5337 GB, free: 131.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/1.358, allocations: 143.5 kB / 0.5338 GB, free: 131.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007555/1.365, allocations: 2.764 MB / 0.5365 GB, free: 131.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008267/1.366, allocations: 87.67 kB / 0.5366 GB, free: 131.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002493/1.369, allocations: 2.89 MB / 0.5394 GB, free: 129.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001879/1.371, allocations: 1.261 MB / 0.5406 GB, free: 128.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000271/1.371, allocations: 95.47 kB / 0.5407 GB, free: 128.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003626/1.371, allocations: 0.4896 MB / 0.5412 GB, free: 128.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00474/1.376, allocations: 2.293 MB / 0.5435 GB, free: 127.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005689/1.382, allocations: 3.912 MB / 0.5473 GB, free: 124.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005494/1.387, allocations: 3.111 MB / 0.5503 GB, free: 123.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.768e-05/1.387, allocations: 17.47 kB / 0.5503 GB, free: 123.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.0125/1.4, allocations: 7.071 MB / 0.5572 GB, free: 120.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001211/1.401, allocations: 1.608 MB / 0.5588 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.14e-05/1.401, allocations: 51.31 kB / 0.5589 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00331/1.404, allocations: 1.267 MB / 0.5601 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004522/1.409, allocations: 1.074 MB / 0.5611 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003153/1.412, allocations: 2.395 MB / 0.5635 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003876/1.416, allocations: 296 kB / 0.5638 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005059/1.417, allocations: 226.6 kB / 0.564 GB, free: 116.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/1.417, allocations: 3.875 kB / 0.564 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01005/1.427, allocations: 6.73 MB / 0.5706 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/1.427, allocations: 50.53 kB / 0.5706 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00293/1.43, allocations: 1.15 MB / 0.5717 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003515/1.433, allocations: 1.074 MB / 0.5728 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002821/1.436, allocations: 2.303 MB / 0.575 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003598/1.44, allocations: 291 kB / 0.5753 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003814/1.44, allocations: 227.1 kB / 0.5755 GB, free: 112 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 545 * 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 {11 55} Notification: Performance of prepare postOptimizeDAE: time 0.005873/1.446, allocations: 2.55 MB / 0.578 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001137/1.447, allocations: 345.5 kB / 0.5783 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/1.457, allocations: 5.887 MB / 0.5841 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.357e-05/1.457, allocations: 36 kB / 0.5841 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/1.457, allocations: 4 kB / 0.5841 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-05/1.457, allocations: 19.92 kB / 0.5841 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02549/1.483, allocations: 12.91 MB / 0.5968 GB, free: 92.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.018e-05/1.483, allocations: 0 / 0.5968 GB, free: 92.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002792/1.486, allocations: 0.6709 MB / 0.5974 GB, free: 91.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003178/1.489, allocations: 0.978 MB / 0.5984 GB, free: 90.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005958/1.49, allocations: 80.86 kB / 0.5984 GB, free: 90.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002653/1.492, allocations: 2.058 MB / 0.6005 GB, free: 88.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/1.492, allocations: 8 kB / 0.6005 GB, free: 88.33 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/1.505, allocations: 8.496 MB / 0.6088 GB, free: 79.76 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002353/1.508, allocations: 0.8363 MB / 0.6096 GB, free: 78.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00108/1.509, allocations: 67.98 kB / 0.6096 GB, free: 78.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00244/1.511, allocations: 231.8 kB / 0.6099 GB, free: 78.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004435/1.512, allocations: 222.8 kB / 0.6101 GB, free: 78.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002724/1.512, allocations: 111 kB / 0.6102 GB, free: 78.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003871/1.516, allocations: 1.847 MB / 0.612 GB, free: 76.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.5e-07/1.516, allocations: 4 kB / 0.612 GB, free: 76.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01001/1.526, allocations: 2.094 MB / 0.614 GB, free: 74.34 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.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 (346): * Single equations (assignments): 345 * 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 {9 50} Notification: Performance of Backend phase and start with SimCode phase: time 0.000975/1.527, allocations: 246.9 kB / 0.6143 GB, free: 74.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01629/1.543, allocations: 9.131 MB / 0.6232 GB, free: 64.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/1.543, allocations: 0 / 0.6232 GB, free: 64.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004534/1.548, allocations: 2.625 MB / 0.6257 GB, free: 62.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005337/1.553, allocations: 0.7688 MB / 0.6265 GB, free: 61.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0282/1.582, allocations: 14.75 MB / 0.6409 GB, free: 46.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004863/1.586, allocations: 4.333 MB / 0.6451 GB, free: 42.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/1.588, allocations: 317.8 kB / 0.6454 GB, free: 42.15 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/1.588, allocations: 0 / 0.6454 GB, free: 42.15 MB / 446.1 MB Notification: Performance of Templates: time 0.4749/2.063, allocations: 113.8 MB / 0.7566 GB, free: 106.7 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningCalcHelperMain.o OMCppModelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningCalcHelperMain.o] Error 1