Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001223/0.001223, allocations: 96.09 kB / 17.64 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001626, allocations: 198.3 kB / 18.54 MB, free: 5.148 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.749/1.749, allocations: 227.3 MB / 246.6 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002717, allocations: 8 kB / 307.3 MB, free: 1.395 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1457, allocations: 51.49 MB / 358.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.4202/0.566, allocations: 33.18 MB / 392 MB, free: 3.199 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03024/0.5963, allocations: 9.514 MB / 401.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0108/0.6071, allocations: 251 kB / 401.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009997/0.6172, allocations: 1.852 MB / 403.6 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02004/0.6373, allocations: 3.22 MB / 406.8 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007586/0.6449, allocations: 1.527 MB / 408.4 MB, free: 7.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02753/0.6724, allocations: 15.65 MB / 424 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05367/0.7261, allocations: 20.4 MB / 444.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01405/0.7402, allocations: 5.17 MB / 449.6 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01537/0.7556, allocations: 5.876 MB / 455.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005191/0.7609, allocations: 0.793 MB / 456.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009887/0.7708, allocations: 1.187 MB / 457.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006893/0.7777, allocations: 2.511 MB / 459.9 MB, free: 7.566 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008841/0.7866, allocations: 2.636 MB / 462.6 MB, free: 4.918 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0343/0.8209, allocations: 22.69 MB / 485.3 MB, free: 14.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.01e-05/0.821, allocations: 0 / 485.3 MB, free: 14.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.821, allocations: 0 / 485.3 MB, free: 14.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.001178/0.8222, allocations: 0 / 485.3 MB, free: 14.17 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04752/0.8697, allocations: 13.41 MB / 498.7 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.8698, allocations: 8.031 kB / 498.7 MB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03807/0.9079, allocations: 6.442 MB / 0.4933 GB, free: 10.17 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02459/0.9326, allocations: 8.19 MB / 0.5013 GB, free: 1.906 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001363/0.934, allocations: 0.9071 MB / 0.5022 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006003/0.94, allocations: 1.195 MB / 0.5033 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06841/1.008, allocations: 18.69 MB / 0.5216 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007951/1.009, allocations: 19.75 kB / 0.5216 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005953/1.015, allocations: 0.496 MB / 0.5221 GB, free: 12.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009633/1.016, allocations: 0.6537 MB / 0.5227 GB, free: 11.83 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.606/1.622, allocations: 16.93 MB / 0.5393 GB, free: 120.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1062/1.728, allocations: 64.1 MB / 0.6019 GB, free: 76.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02414/1.753, allocations: 30.01 MB / 0.6312 GB, free: 43.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006016/1.759, allocations: 4.097 MB / 0.6352 GB, free: 39.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0161/1.775, allocations: 10.51 MB / 0.6454 GB, free: 29.32 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/1.775, allocations: 73.81 kB / 0.6455 GB, free: 29.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 5.52e-06/1.775, allocations: 0 / 0.6455 GB, free: 29.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.04532/1.82, allocations: 21.71 MB / 0.6667 GB, free: 7.168 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/1.82, allocations: 120.4 kB / 0.6668 GB, free: 7.027 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008803/1.829, allocations: 5.135 MB / 0.6719 GB, free: 1.902 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009302/1.83, allocations: 97.7 kB / 0.6719 GB, free: 1.801 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004299/1.835, allocations: 5.357 MB / 0.6772 GB, free: 12.41 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002404/1.837, allocations: 1.445 MB / 0.6786 GB, free: 10.97 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005362/1.837, allocations: 128 kB / 0.6787 GB, free: 10.85 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004854/1.838, allocations: 0.5591 MB / 0.6793 GB, free: 10.28 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00526/1.843, allocations: 2.874 MB / 0.6821 GB, free: 7.402 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007488/1.851, allocations: 5.373 MB / 0.6873 GB, free: 0.875 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007719/1.858, allocations: 4.043 MB / 0.6913 GB, free: 12.81 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.997e-05/1.859, allocations: 27.95 kB / 0.6913 GB, free: 12.78 MB / 478.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.02093/1.88, allocations: 9.723 MB / 0.7008 GB, free: 2.98 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.593e-05/1.88, allocations: 44.09 kB / 0.7008 GB, free: 2.938 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001868/1.88, allocations: 83.98 kB / 0.7009 GB, free: 2.855 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003066/1.883, allocations: 1.12 MB / 0.702 GB, free: 1.723 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006174/1.889, allocations: 1.455 MB / 0.7034 GB, free: 272 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/1.907, allocations: 12.51 MB / 0.7156 GB, free: 3.227 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007841/1.915, allocations: 359.4 kB / 0.716 GB, free: 2.875 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001815/1.917, allocations: 331.9 kB / 0.7163 GB, free: 2.551 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (767): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(10,48.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.46/2.377, allocations: 4.223 MB / 0.7204 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003229/2.38, allocations: 0.5313 MB / 0.7209 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02111/2.401, allocations: 7.172 MB / 0.7279 GB, free: 153.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01277/2.414, allocations: 4.288 MB / 0.7321 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001899/2.414, allocations: 13.84 kB / 0.7321 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002361/2.414, allocations: 21.83 kB / 0.7322 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06437/2.479, allocations: 17.1 MB / 0.7489 GB, free: 144.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.455e-05/2.479, allocations: 3.875 kB / 0.7489 GB, free: 144.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003693/2.483, allocations: 0.6881 MB / 0.7495 GB, free: 144.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003898/2.486, allocations: 1.183 MB / 0.7507 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001085/2.488, allocations: 97.98 kB / 0.7508 GB, free: 144 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02068/2.508, allocations: 16.02 MB / 0.7664 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.14e-05/2.508, allocations: 5 kB / 0.7664 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01911/2.528, allocations: 10.4 MB / 0.7766 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004441/2.532, allocations: 1.142 MB / 0.7777 GB, free: 125 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00228/2.534, allocations: 82.67 kB / 0.7778 GB, free: 124.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004314/2.539, allocations: 227.1 kB / 0.778 GB, free: 124.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001065/2.54, allocations: 300.8 kB / 0.7783 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004207/2.54, allocations: 124.5 kB / 0.7784 GB, free: 124.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0107/2.551, allocations: 3.436 MB / 0.7818 GB, free: 121.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.12e-07/2.551, allocations: 0 / 0.7818 GB, free: 121.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01528/2.566, allocations: 1.966 MB / 0.7837 GB, free: 119.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,48.0%) 46,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002/2.568, allocations: 289.8 kB / 0.784 GB, free: 119.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01811/2.587, allocations: 7.757 MB / 0.7915 GB, free: 112.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/2.587, allocations: 0 / 0.7915 GB, free: 112.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007942/2.595, allocations: 4.142 MB / 0.7956 GB, free: 108.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01065/2.605, allocations: 1.379 MB / 0.7969 GB, free: 107.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05543/2.661, allocations: 24.39 MB / 0.8207 GB, free: 82.99 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01476/2.675, allocations: 7.144 MB / 0.8277 GB, free: 75.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003424/2.679, allocations: 459.3 kB / 0.8282 GB, free: 75.37 MB / 494.1 MB Notification: Performance of SimCode: time 1.513e-06/2.679, allocations: 0 / 0.8282 GB, free: 75.37 MB / 494.1 MB Notification: Performance of Templates: time 1.611/4.29, allocations: 0.4936 GB / 1.322 GB, free: 151.6 MB / 0.5138 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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_MainsCalcHelperMain.o OMCppModelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o] Error 1