Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008332/0.0008406, allocations: 92.06 kB / 17.58 MB, free: 6.168 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.0009292/0.0009293, allocations: 184.1 kB / 18.47 MB, free: 5.336 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.681/1.681, allocations: 205.4 MB / 224.6 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.0004852/0.0004854, allocations: 8 kB / 281.4 MB, free: 3.711 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1197, allocations: 47.59 MB / 329 MB, free: 4.047 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0434/0.1632, allocations: 36.5 MB / 365.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03031/0.1936, allocations: 10.3 MB / 375.8 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01264/0.2063, allocations: 251.1 kB / 376.1 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009694/0.2161, allocations: 1.786 MB / 377.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3364/0.5525, allocations: 3.136 MB / 381 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01003/0.5626, allocations: 1.59 MB / 382.6 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03183/0.5944, allocations: 14.78 MB / 397.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0461/0.6406, allocations: 20.28 MB / 417.6 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01283/0.6535, allocations: 5.14 MB / 422.8 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01269/0.6662, allocations: 6.122 MB / 428.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004622/0.6709, allocations: 0.793 MB / 429.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008898/0.6798, allocations: 1.158 MB / 430.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006142/0.686, allocations: 2.684 MB / 433.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007901/0.694, allocations: 2.673 MB / 436.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03319/0.7272, allocations: 22.57 MB / 458.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.42e-05/0.7273, allocations: 0 / 458.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.239e-06/0.7273, allocations: 0 / 458.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00111/0.7284, allocations: 4 kB / 458.8 MB, free: 4.258 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.04289/0.7713, allocations: 13.34 MB / 472.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.7714, allocations: 11.97 kB / 472.1 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04772/0.8191, allocations: 9.21 MB / 481.3 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01899/0.8382, allocations: 7.551 MB / 488.9 MB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001174/0.8394, allocations: 0.9686 MB / 489.9 MB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006689/0.8461, allocations: 1.287 MB / 491.1 MB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06397/0.9101, allocations: 20.42 MB / 0.4996 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005684/0.9107, allocations: 23.75 kB / 0.4996 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005068/0.9158, allocations: 0.531 MB / 0.5001 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008196/0.9166, allocations: 0.7416 MB / 0.5008 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04687/0.9635, allocations: 19.14 MB / 0.5195 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5501/1.514, allocations: 65.2 MB / 0.5832 GB, free: 86.54 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03015/1.544, allocations: 57.21 MB / 0.6391 GB, free: 28.58 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007165/1.551, allocations: 4.194 MB / 0.6432 GB, free: 26.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01805/1.569, allocations: 11.68 MB / 0.6546 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/1.569, allocations: 73.34 kB / 0.6546 GB, free: 14.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=361): time 6.072e-06/1.569, allocations: 4 kB / 0.6547 GB, free: 14.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=403): time 0.03724/1.607, allocations: 18.79 MB / 0.673 GB, free: 11.81 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.611e-05/1.607, allocations: 90.58 kB / 0.6731 GB, free: 11.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009374/1.616, allocations: 5.635 MB / 0.6786 GB, free: 6.102 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007744/1.617, allocations: 89.7 kB / 0.6787 GB, free: 6.008 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004613/1.621, allocations: 6.051 MB / 0.6846 GB, free: 15.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001951/1.623, allocations: 1.429 MB / 0.686 GB, free: 14.51 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003888/1.624, allocations: 156 kB / 0.6861 GB, free: 14.36 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004408/1.624, allocations: 0.6169 MB / 0.6867 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004987/1.629, allocations: 3.111 MB / 0.6898 GB, free: 10.62 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007899/1.637, allocations: 6.873 MB / 0.6965 GB, free: 1.953 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0077/1.645, allocations: 4.648 MB / 0.701 GB, free: 13.29 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.064e-05/1.645, allocations: 36 kB / 0.7011 GB, free: 13.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01957/1.665, allocations: 10.97 MB / 0.7118 GB, free: 2.223 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001346/1.665, allocations: 60 kB / 0.7118 GB, free: 2.164 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002278/1.665, allocations: 127.9 kB / 0.7119 GB, free: 2.039 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002551/1.668, allocations: 0.9934 MB / 0.7129 GB, free: 1.031 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2884/1.956, allocations: 1.851 MB / 0.7147 GB, free: 159 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01242/1.968, allocations: 9.53 MB / 0.724 GB, free: 154.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007598/1.976, allocations: 455.5 kB / 0.7245 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002031/1.978, allocations: 428.3 kB / 0.7249 GB, free: 154.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01098/1.989, allocations: 4.512 MB / 0.7293 GB, free: 152.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001752/1.991, allocations: 0.5737 MB / 0.7298 GB, free: 152.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/2.002, allocations: 6.699 MB / 0.7364 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.429e-05/2.002, allocations: 39.34 kB / 0.7364 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/2.002, allocations: 8.625 kB / 0.7364 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.114e-05/2.002, allocations: 25.78 kB / 0.7365 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04049/2.043, allocations: 16.46 MB / 0.7525 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.651e-05/2.043, allocations: 3.812 kB / 0.7525 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003653/2.047, allocations: 0.7833 MB / 0.7533 GB, free: 142.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002197/2.049, allocations: 0.7959 MB / 0.7541 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000729/2.05, allocations: 84.19 kB / 0.7542 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/2.06, allocations: 8.655 MB / 0.7626 GB, free: 136.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/2.061, allocations: 8.375 kB / 0.7626 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01874/2.079, allocations: 9.795 MB / 0.7722 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004246/2.084, allocations: 1.147 MB / 0.7733 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002402/2.086, allocations: 71.94 kB / 0.7734 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004173/2.09, allocations: 231.5 kB / 0.7736 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009758/2.091, allocations: 278.7 kB / 0.7739 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005941/2.092, allocations: 120 kB / 0.774 GB, free: 127.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.009349/2.101, allocations: 3.703 MB / 0.7776 GB, free: 124 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.81e-07/2.101, allocations: 3.938 kB / 0.7776 GB, free: 124 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01247/2.114, allocations: 2.041 MB / 0.7796 GB, free: 121.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001376/2.115, allocations: 255.9 kB / 0.7798 GB, free: 121.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0151/2.13, allocations: 8.186 MB / 0.7878 GB, free: 113.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/2.13, allocations: 4 kB / 0.7878 GB, free: 113.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006935/2.137, allocations: 3.608 MB / 0.7913 GB, free: 109.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01033/2.148, allocations: 1.343 MB / 0.7927 GB, free: 108.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05839/2.206, allocations: 25.51 MB / 0.8176 GB, free: 82.89 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01663/2.223, allocations: 7.469 MB / 0.8249 GB, free: 75.38 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003244/2.226, allocations: 0.511 MB / 0.8254 GB, free: 74.87 MB / 478.1 MB Notification: Performance of SimCode: time 2.004e-06/2.226, allocations: 0 / 0.8254 GB, free: 74.87 MB / 478.1 MB Notification: Performance of Templates: time 1.375/3.601, allocations: 488.2 MB / 1.302 GB, free: 123.5 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1