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.InductionMachines.IMC_DOL.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.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002402/0.002401, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.536/3.536, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001909/0.001909, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000706/0.0007065, allocations: 12 kB / 327 MB, free: 15.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1711, allocations: 47.59 MB / 374.6 MB, free: 15.41 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.5661/0.7372, allocations: 30.67 MB / 405.2 MB, free: 6.461 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.05588/0.7932, allocations: 9.657 MB / 414.9 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01733/0.8107, allocations: 232.1 kB / 415.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.03612/0.8469, allocations: 2.077 MB / 417.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04572/0.8927, allocations: 3.502 MB / 420.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02573/0.9186, allocations: 1.62 MB / 422.3 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.07821/0.9968, allocations: 13.73 MB / 436.1 MB, free: 36 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1717/1.169, allocations: 24.41 MB / 460.5 MB, free: 7.492 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02384/1.193, allocations: 5.712 MB / 466.2 MB, free: 1.762 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02661/1.219, allocations: 6.319 MB / 472.5 MB, free: 11.42 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.008083/1.227, allocations: 0.9413 MB / 473.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.014/1.242, allocations: 1.238 MB / 474.7 MB, free: 9.238 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0113/1.253, allocations: 2.936 MB / 477.6 MB, free: 6.293 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01241/1.265, allocations: 3.108 MB / 480.7 MB, free: 3.172 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.06858/1.334, allocations: 26.93 MB / 0.4958 GB, free: 8.172 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/1.334, allocations: 0 / 0.4958 GB, free: 8.172 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.588e-06/1.334, allocations: 4 kB / 0.4958 GB, free: 8.168 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001114/1.335, allocations: 0 / 0.4958 GB, free: 8.168 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.1137/1.449, allocations: 15.8 MB / 0.5112 GB, free: 8.242 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.463e-05/1.449, allocations: 8.031 kB / 0.5112 GB, free: 8.234 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1684/1.618, allocations: 9.209 MB / 0.5202 GB, free: 15 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05141/1.669, allocations: 9.021 MB / 0.529 GB, free: 5.902 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002994/1.672, allocations: 1.072 MB / 0.53 GB, free: 4.828 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01097/1.683, allocations: 1.406 MB / 0.5314 GB, free: 3.422 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 1.122/2.805, allocations: 23 MB / 0.5539 GB, free: 95.25 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.002099/2.807, allocations: 20.5 kB / 0.5539 GB, free: 95.25 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009834/2.817, allocations: 0.5832 MB / 0.5545 GB, free: 94.8 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002043/2.819, allocations: 0.8102 MB / 0.5553 GB, free: 94.71 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1677/2.987, allocations: 21.62 MB / 0.5764 GB, free: 84.07 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3008/3.288, allocations: 74.29 MB / 0.6489 GB, free: 8.973 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1122/3.4, allocations: 53.51 MB / 0.7012 GB, free: 13.14 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6522/4.052, allocations: 15.26 MB / 0.7161 GB, free: 148.5 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001565/4.053, allocations: 87.25 kB / 0.7162 GB, free: 148.5 MB / 474.8 MB Notification: Performance of pre-optimization done (n=514): time 1.57e-05/4.053, allocations: 1.906 kB / 0.7162 GB, free: 148.5 MB / 474.8 MB Notification: Performance of matching and sorting (n=522): time 0.164/4.217, allocations: 27.3 MB / 0.7428 GB, free: 139.1 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/4.217, allocations: 132.4 kB / 0.743 GB, free: 139 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02494/4.242, allocations: 5.793 MB / 0.7486 GB, free: 136.9 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00177/4.244, allocations: 112.1 kB / 0.7487 GB, free: 136.8 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.008013/4.252, allocations: 6.009 MB / 0.7546 GB, free: 132.1 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004539/4.256, allocations: 1.787 MB / 0.7563 GB, free: 130.8 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002362/4.259, allocations: 154.7 kB / 0.7565 GB, free: 130.7 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001445/4.26, allocations: 0.627 MB / 0.7571 GB, free: 130.2 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01717/4.278, allocations: 3.749 MB / 0.7608 GB, free: 128.8 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02038/4.298, allocations: 6.791 MB / 0.7674 GB, free: 123.4 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02769/4.326, allocations: 5.209 MB / 0.7725 GB, free: 121 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001988/4.326, allocations: 35.41 kB / 0.7725 GB, free: 121 MB / 474.8 MB Notification: Performance of matching and sorting (n=1015) (initialization): time 0.07325/4.399, allocations: 12.24 MB / 0.7845 GB, free: 114.5 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000159/4.4, allocations: 51.95 kB / 0.7845 GB, free: 114.5 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002986/4.4, allocations: 100 kB / 0.7846 GB, free: 114.4 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01201/4.412, allocations: 1.611 MB / 0.7862 GB, free: 113.1 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01814/4.43, allocations: 1.761 MB / 0.7879 GB, free: 111.6 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05824/4.489, allocations: 18.64 MB / 0.8061 GB, free: 92.65 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01538/4.504, allocations: 451.2 kB / 0.8065 GB, free: 92.21 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003581/4.508, allocations: 392 kB / 0.8069 GB, free: 91.83 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 460 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (915): * Single equations (assignments): 905 * 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: 5 * 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: 5 {(1,100.0%) 1,(12,54.2%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02833/4.536, allocations: 5.255 MB / 0.812 GB, free: 86.56 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005386/4.542, allocations: 0.6097 MB / 0.8126 GB, free: 85.95 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0533/4.595, allocations: 9.571 MB / 0.822 GB, free: 76.28 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02828/4.623, allocations: 5.983 MB / 0.8278 GB, free: 70.27 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001363/4.624, allocations: 20 kB / 0.8278 GB, free: 70.25 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002282/4.624, allocations: 27.89 kB / 0.8279 GB, free: 70.22 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1015/4.725, allocations: 21.38 MB / 0.8487 GB, free: 48.75 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.557e-05/4.725, allocations: 12 kB / 0.8487 GB, free: 48.73 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01145/4.737, allocations: 0.8815 MB / 0.8496 GB, free: 47.85 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01231/4.749, allocations: 1.626 MB / 0.8512 GB, free: 46.2 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001961/4.751, allocations: 124 kB / 0.8513 GB, free: 46.08 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06523/4.817, allocations: 21.75 MB / 0.8726 GB, free: 23.44 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-05/4.817, allocations: 11.94 kB / 0.8726 GB, free: 23.43 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6169/5.434, allocations: 14.93 MB / 0.8871 GB, free: 134.1 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009106/5.443, allocations: 1.384 MB / 0.8885 GB, free: 134 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004354/5.447, allocations: 114.5 kB / 0.8886 GB, free: 134 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01121/5.459, allocations: 298.2 kB / 0.8889 GB, free: 134 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003867/5.463, allocations: 411.4 kB / 0.8893 GB, free: 134 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002182/5.465, allocations: 163.1 kB / 0.8894 GB, free: 134 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01985/5.485, allocations: 3.875 MB / 0.8932 GB, free: 133.2 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.242e-06/5.485, allocations: 0 / 0.8932 GB, free: 133.2 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.0251/5.51, allocations: 2.372 MB / 0.8955 GB, free: 133 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (451): * Single equations (assignments): 440 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 1,(12,54.9%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002932/5.513, allocations: 319.5 kB / 0.8958 GB, free: 132.9 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.04341/5.557, allocations: 10.17 MB / 0.9058 GB, free: 128.7 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 2.607e-05/5.557, allocations: 3.938 kB / 0.9058 GB, free: 128.7 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02405/5.581, allocations: 5.546 MB / 0.9112 GB, free: 126 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0183/5.599, allocations: 1.484 MB / 0.9127 GB, free: 125.6 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1158/5.715, allocations: 29.65 MB / 0.9416 GB, free: 109.6 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03134/5.746, allocations: 8.88 MB / 0.9503 GB, free: 104.2 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005913/5.752, allocations: 0.5177 MB / 0.9508 GB, free: 103.7 MB / 474.8 MB Notification: Performance of SimCode: time 2.495e-06/5.753, allocations: 4 kB / 0.9508 GB, free: 103.7 MB / 474.8 MB Notification: Performance of Templates: time 3.522/9.274, allocations: 0.632 GB / 1.583 GB, free: 27.35 MB / 0.4949 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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=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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLFunctions.cpp:220:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp166 = 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.InductionMachines.IMC_DOLFunctions.cpp:220:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp166 = 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.InductionMachines.IMC_DOLCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o] Error 1\n'