Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001162, allocations: 92.81 kB / 16.95 MB, free: 5.938 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: 178 kB / 17.84 MB, free: 5.617 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.563/1.563, allocations: 223.2 MB / 241.9 MB, free: 332 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.0002877, allocations: 4 kB / 301.5 MB, free: 6.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1316, allocations: 50.42 MB / 351.9 MB, free: 4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.3103/0.442, allocations: 32.6 MB / 384.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0263/0.4683, allocations: 9.296 MB / 393.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01025/0.4786, allocations: 248.3 kB / 394 MB, free: 4.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01006/0.4887, allocations: 1.84 MB / 395.9 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01698/0.5057, allocations: 3.236 MB / 399.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007812/0.5136, allocations: 1.499 MB / 400.6 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02882/0.5424, allocations: 15.48 MB / 416.1 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05091/0.5933, allocations: 20.38 MB / 436.5 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01468/0.6081, allocations: 5.174 MB / 441.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01604/0.6242, allocations: 5.86 MB / 447.5 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004875/0.6291, allocations: 0.793 MB / 448.3 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008462/0.6376, allocations: 1.164 MB / 449.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00671/0.6443, allocations: 2.507 MB / 452 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009561/0.6539, allocations: 2.629 MB / 454.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03434/0.6883, allocations: 22.65 MB / 477.2 MB, free: 8.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.6883, allocations: 4 kB / 477.2 MB, free: 8.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.6884, allocations: 0 / 477.2 MB, free: 8.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0009952/0.6894, allocations: 0 / 477.2 MB, free: 8.828 MB / 382.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.04589/0.7353, allocations: 13.37 MB / 490.6 MB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.372e-05/0.7354, allocations: 8.031 kB / 490.6 MB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03851/0.7739, allocations: 6.403 MB / 497 MB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02229/0.7962, allocations: 8.162 MB / 0.4933 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00119/0.7975, allocations: 0.9071 MB / 0.4942 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005733/0.8032, allocations: 1.191 MB / 0.4954 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06559/0.8688, allocations: 18.7 MB / 0.5137 GB, free: 7.766 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000917/0.8698, allocations: 31.67 kB / 0.5137 GB, free: 7.734 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00587/0.8757, allocations: 0.496 MB / 0.5142 GB, free: 7.238 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001018/0.8768, allocations: 0.6459 MB / 0.5148 GB, free: 6.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5828/1.46, allocations: 16.93 MB / 0.5313 GB, free: 109.7 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1234/1.583, allocations: 62.78 MB / 0.5926 GB, free: 63.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02392/1.607, allocations: 29.69 MB / 0.6216 GB, free: 29.93 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007411/1.614, allocations: 4.075 MB / 0.6256 GB, free: 25.86 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02031/1.635, allocations: 10.21 MB / 0.6356 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.72e-05/1.635, allocations: 81.8 kB / 0.6357 GB, free: 15.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=408): time 5.66e-06/1.635, allocations: 0 / 0.6357 GB, free: 15.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=418): time 0.05865/1.694, allocations: 21.7 MB / 0.6569 GB, free: 9.531 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/1.694, allocations: 120.4 kB / 0.657 GB, free: 9.391 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01548/1.709, allocations: 5.122 MB / 0.662 GB, free: 4.277 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001254/1.711, allocations: 93.64 kB / 0.6621 GB, free: 4.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005593/1.716, allocations: 5.343 MB / 0.6673 GB, free: 14.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002668/1.719, allocations: 1.443 MB / 0.6687 GB, free: 13.37 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001102/1.72, allocations: 128 kB / 0.6688 GB, free: 13.24 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005441/1.721, allocations: 0.563 MB / 0.6694 GB, free: 12.67 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005719/1.726, allocations: 2.87 MB / 0.6722 GB, free: 9.797 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00825/1.735, allocations: 5.369 MB / 0.6774 GB, free: 3.27 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007822/1.742, allocations: 4.043 MB / 0.6814 GB, free: 15.21 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001277/1.743, allocations: 24 kB / 0.6814 GB, free: 15.19 MB / 478.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.02432/1.767, allocations: 9.731 MB / 0.6909 GB, free: 5.387 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001726/1.767, allocations: 40 kB / 0.6909 GB, free: 5.348 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001996/1.767, allocations: 84 kB / 0.691 GB, free: 5.266 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003606/1.771, allocations: 1.133 MB / 0.6921 GB, free: 4.121 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006411/1.777, allocations: 1.455 MB / 0.6935 GB, free: 2.664 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3911/2.169, allocations: 12.5 MB / 0.7057 GB, free: 138.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006568/2.175, allocations: 360.8 kB / 0.7061 GB, free: 138.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001741/2.177, allocations: 324.3 kB / 0.7064 GB, free: 138.6 MB / 478.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.01125/2.188, allocations: 4.225 MB / 0.7105 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001963/2.19, allocations: 0.533 MB / 0.711 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0144/2.205, allocations: 7.175 MB / 0.718 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007109/2.212, allocations: 4.283 MB / 0.7222 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.749e-05/2.212, allocations: 18.02 kB / 0.7222 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.841e-05/2.212, allocations: 23.02 kB / 0.7223 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03079/2.243, allocations: 17.08 MB / 0.739 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/2.243, allocations: 5.188 kB / 0.739 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002887/2.246, allocations: 0.6879 MB / 0.7396 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00298/2.249, allocations: 1.184 MB / 0.7408 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004913/2.249, allocations: 98.22 kB / 0.7409 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01572/2.265, allocations: 16.01 MB / 0.7565 GB, free: 112.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.896e-06/2.265, allocations: 11.88 kB / 0.7565 GB, free: 112.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01981/2.285, allocations: 10.38 MB / 0.7667 GB, free: 103.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003991/2.289, allocations: 1.139 MB / 0.7678 GB, free: 102.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002531/2.291, allocations: 80 kB / 0.7679 GB, free: 102.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004299/2.296, allocations: 220.1 kB / 0.7681 GB, free: 102.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00117/2.297, allocations: 309.7 kB / 0.7684 GB, free: 102.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006513/2.298, allocations: 122.8 kB / 0.7685 GB, free: 102.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008197/2.306, allocations: 3.424 MB / 0.7718 GB, free: 99.18 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.81e-07/2.306, allocations: 0 / 0.7718 GB, free: 99.18 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01146/2.317, allocations: 1.961 MB / 0.7737 GB, free: 97.22 MB / 478.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.001375/2.319, allocations: 292.8 kB / 0.774 GB, free: 96.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01466/2.333, allocations: 7.761 MB / 0.7816 GB, free: 89.11 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.656e-05/2.333, allocations: 384 / 0.7816 GB, free: 89.11 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008587/2.342, allocations: 4.147 MB / 0.7856 GB, free: 84.88 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01264/2.355, allocations: 1.372 MB / 0.787 GB, free: 83.54 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05223/2.407, allocations: 24.33 MB / 0.8107 GB, free: 59.11 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008444/2.416, allocations: 7.132 MB / 0.8177 GB, free: 51.95 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002481/2.418, allocations: 459.3 kB / 0.8181 GB, free: 51.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.873e-06/2.418, allocations: 0 / 0.8181 GB, free: 51.5 MB / 478.1 MB Notification: Performance of Templates: time 1.597/4.015, allocations: 0.4927 GB / 1.311 GB, free: 118.7 MB / 0.4982 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile make -j1 -f Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o] Error 1