Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00146/0.00146, allocations: 187.6 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001153/0.001153, allocations: 96.66 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003963/0.0003962, allocations: 8 kB / 327 MB, free: 180 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3413, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5272/0.8685, allocations: 158.5 MB / 0.5206 GB, free: 66.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004149/0.869, allocations: 100.8 kB / 0.5207 GB, free: 66.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.822/2.691, allocations: 388.6 MB / 0.9002 GB, free: 40.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.675e-06/2.691, allocations: 0 / 0.9002 GB, free: 40.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001142/2.692, allocations: 283.5 kB / 0.9004 GB, free: 40.59 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.05695/2.749, allocations: 11.95 MB / 0.9121 GB, free: 36.63 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/2.749, allocations: 7.844 kB / 0.9121 GB, free: 36.63 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04495/2.794, allocations: 5.229 MB / 0.9172 GB, free: 35.95 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03378/2.828, allocations: 9.674 MB / 0.9267 GB, free: 34.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001483/2.829, allocations: 0.8964 MB / 0.9275 GB, free: 34.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006162/2.835, allocations: 1.178 MB / 0.9287 GB, free: 33.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06647/2.902, allocations: 19.58 MB / 0.9478 GB, free: 20.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007513/2.903, allocations: 23.75 kB / 0.9478 GB, free: 20.58 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005642/2.908, allocations: 0.5066 MB / 0.9483 GB, free: 20.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001144/2.91, allocations: 0.7708 MB / 0.9491 GB, free: 19.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05814/2.968, allocations: 17.4 MB / 0.9661 GB, free: 4.215 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5511/3.519, allocations: 63.38 MB / 1.028 GB, free: 38.42 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03576/3.555, allocations: 22.41 MB / 1.05 GB, free: 26.93 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06075/3.616, allocations: 22.91 MB / 1.072 GB, free: 21.62 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.109e-05/3.616, allocations: 108.2 kB / 1.072 GB, free: 21.53 MB / 458.7 MB Notification: Performance of pre-optimization done (n=755): time 1.258e-05/3.616, allocations: 0 / 1.072 GB, free: 21.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=765): time 0.1304/3.746, allocations: 41.65 MB / 1.113 GB, free: 15.39 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/3.746, allocations: 145.6 kB / 1.113 GB, free: 15.29 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01017/3.757, allocations: 3.907 MB / 1.117 GB, free: 13.82 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001671/3.758, allocations: 126.1 kB / 1.117 GB, free: 13.71 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003633/3.762, allocations: 4.508 MB / 1.121 GB, free: 10.21 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004885/3.767, allocations: 2.548 MB / 1.124 GB, free: 8.227 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001489/3.768, allocations: 148.2 kB / 1.124 GB, free: 8.109 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008985/3.769, allocations: 0.6438 MB / 1.125 GB, free: 7.648 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01354/3.783, allocations: 4.836 MB / 1.129 GB, free: 5.66 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01599/3.799, allocations: 6.692 MB / 1.136 GB, free: 1.465 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02048/3.819, allocations: 6.203 MB / 1.142 GB, free: 15.59 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.87e-05/3.82, allocations: 15.5 kB / 1.142 GB, free: 15.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.04547/3.865, allocations: 14.24 MB / 1.156 GB, free: 3.891 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.794e-05/3.865, allocations: 28 kB / 1.156 GB, free: 3.863 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001522/3.865, allocations: 52 kB / 1.156 GB, free: 3.812 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01241/3.878, allocations: 3.38 MB / 1.159 GB, free: 1.043 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01284/3.891, allocations: 1.552 MB / 1.161 GB, free: 0 / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02204/3.913, allocations: 13.88 MB / 1.174 GB, free: 2.594 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00926/3.922, allocations: 400.8 kB / 1.175 GB, free: 2.285 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00229/3.924, allocations: 335.4 kB / 1.175 GB, free: 1.98 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (792): * Single equations (assignments): 727 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.4027/4.327, allocations: 4.717 MB / 1.18 GB, free: 99.75 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002726/4.33, allocations: 0.5899 MB / 1.18 GB, free: 99.75 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04131/4.371, allocations: 13.72 MB / 1.194 GB, free: 99.18 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02915/4.4, allocations: 10.43 MB / 1.204 GB, free: 98.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.552e-05/4.401, allocations: 9.375 kB / 1.204 GB, free: 98.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001863/4.401, allocations: 33.89 kB / 1.204 GB, free: 98.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07253/4.473, allocations: 28.21 MB / 1.231 GB, free: 95.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.911e-05/4.473, allocations: 2.406 kB / 1.231 GB, free: 95.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00823/4.482, allocations: 0.963 MB / 1.232 GB, free: 95.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01176/4.493, allocations: 3.483 MB / 1.236 GB, free: 94.06 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00179/4.495, allocations: 169.8 kB / 1.236 GB, free: 93.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02493/4.52, allocations: 18.35 MB / 1.254 GB, free: 80.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/4.52, allocations: 7.625 kB / 1.254 GB, free: 80.34 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05173/4.572, allocations: 21.03 MB / 1.274 GB, free: 70.43 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006344/4.578, allocations: 1.747 MB / 1.276 GB, free: 69.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002494/4.581, allocations: 122.3 kB / 1.276 GB, free: 69.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007188/4.588, allocations: 315.6 kB / 1.277 GB, free: 69.42 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002549/4.591, allocations: 0.5564 MB / 1.277 GB, free: 69.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008536/4.592, allocations: 202.7 kB / 1.277 GB, free: 69.26 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007041/4.599, allocations: 2.954 MB / 1.28 GB, free: 68.15 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.32e-07/4.599, allocations: 0 / 1.28 GB, free: 68.15 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01212/4.611, allocations: 2.148 MB / 1.282 GB, free: 67.93 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 (513): * Single equations (assignments): 447 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.002759/4.614, allocations: 0.7498 MB / 1.283 GB, free: 67.68 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03116/4.645, allocations: 12.24 MB / 1.295 GB, free: 61.93 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/4.645, allocations: 1.5 kB / 1.295 GB, free: 61.93 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01836/4.663, allocations: 6.699 MB / 1.301 GB, free: 56.04 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01168/4.675, allocations: 1.317 MB / 1.303 GB, free: 55.06 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07108/4.746, allocations: 29.05 MB / 1.331 GB, free: 28.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01619/4.763, allocations: 7.532 MB / 1.339 GB, free: 22.97 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003682/4.766, allocations: 484.4 kB / 1.339 GB, free: 22.52 MB / 0.4948 GB Notification: Performance of SimCode: time 2.214e-06/4.766, allocations: 0 / 1.339 GB, free: 22.52 MB / 0.4948 GB Notification: Performance of Templates: time 3.279/8.045, allocations: 0.8631 GB / 2.202 GB, free: 88.65 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:637:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp342 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:637:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp342 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o] Error 1\n'