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_Transformer.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_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001494/0.001494, allocations: 185.3 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.995/1.995, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001152/0.001152, allocations: 93.89 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004215/0.0004214, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3591, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5599/0.919, allocations: 167.3 MB / 0.5291 GB, free: 63.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003601/0.9195, allocations: 105.8 kB / 0.5292 GB, free: 63.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.502/5.421, allocations: 0.8584 GB / 1.388 GB, free: 31.61 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.407e-06/5.421, allocations: 0 / 1.388 GB, free: 31.61 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001873/5.423, allocations: 484.2 kB / 1.388 GB, free: 31.56 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5875 * Number of variables: 5875 Notification: Performance of Generate backend data structure: time 0.105/5.528, allocations: 20.72 MB / 1.408 GB, free: 25.19 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/5.528, allocations: 11.72 kB / 1.408 GB, free: 25.19 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08632/5.615, allocations: 10.38 MB / 1.418 GB, free: 24 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05766/5.673, allocations: 15.86 MB / 1.434 GB, free: 22.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002697/5.675, allocations: 1.558 MB / 1.435 GB, free: 22.14 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01166/5.687, allocations: 2.011 MB / 1.437 GB, free: 22.13 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1342/5.821, allocations: 35.93 MB / 1.473 GB, free: 19.71 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001504/5.823, allocations: 35.19 kB / 1.473 GB, free: 19.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01135/5.834, allocations: 0.8645 MB / 1.473 GB, free: 19.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002403/5.837, allocations: 1.388 MB / 1.475 GB, free: 19.65 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1228/5.96, allocations: 33.28 MB / 1.507 GB, free: 0 / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8563/6.816, allocations: 112.1 MB / 1.617 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07633/6.892, allocations: 44.26 MB / 1.66 GB, free: 19.37 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1628/7.055, allocations: 49.45 MB / 1.708 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/7.056, allocations: 185.6 kB / 1.708 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=1590): time 2.223e-05/7.056, allocations: 0 / 1.708 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1602): time 0.7558/7.811, allocations: 74.75 MB / 1.781 GB, free: 68.14 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001698/7.812, allocations: 218.2 kB / 1.782 GB, free: 68.03 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01911/7.831, allocations: 5.984 MB / 1.788 GB, free: 67.61 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.003848/7.835, allocations: 246.6 kB / 1.788 GB, free: 67.58 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006006/7.841, allocations: 6.897 MB / 1.795 GB, free: 63.97 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.009033/7.85, allocations: 5.249 MB / 1.8 GB, free: 60.55 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004288/7.854, allocations: 256.2 kB / 1.8 GB, free: 60.55 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.002068/7.856, allocations: 0.9203 MB / 1.801 GB, free: 60.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02954/7.886, allocations: 10.4 MB / 1.811 GB, free: 60.17 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03268/7.919, allocations: 12.59 MB / 1.823 GB, free: 57.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03441/7.953, allocations: 12.32 MB / 1.835 GB, free: 52.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001436/7.953, allocations: 13.62 kB / 1.835 GB, free: 52.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1877) (initialization): time 0.09933/8.053, allocations: 31.47 MB / 1.866 GB, free: 39.28 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.026e-05/8.053, allocations: 31.48 kB / 1.866 GB, free: 39.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001899/8.053, allocations: 51.72 kB / 1.866 GB, free: 39.28 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04916/8.102, allocations: 14.89 MB / 1.881 GB, free: 32.35 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01757/8.12, allocations: 2.111 MB / 1.883 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07646/8.196, allocations: 36.09 MB / 1.918 GB, free: 13.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01734/8.214, allocations: 0.6275 MB / 1.919 GB, free: 13.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005278/8.219, allocations: 0.5227 MB / 1.919 GB, free: 12.97 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 228 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1070): * Single equations (assignments): 1030 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * 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 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of prepare postOptimizeDAE: time 0.5544/8.773, allocations: 8.077 MB / 1.927 GB, free: 90.91 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006719/8.78, allocations: 1.015 MB / 1.928 GB, free: 90.91 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1128/8.893, allocations: 32.55 MB / 1.96 GB, free: 90.12 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007446/8.894, allocations: 384.9 kB / 1.96 GB, free: 90.12 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001293/8.894, allocations: 12.17 kB / 1.96 GB, free: 90.12 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003944/8.894, allocations: 70.7 kB / 1.96 GB, free: 90.12 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1923/9.087, allocations: 60.9 MB / 2.02 GB, free: 80.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002953/9.087, allocations: 8.266 kB / 2.02 GB, free: 80.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01475/9.102, allocations: 1.648 MB / 2.021 GB, free: 80.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04972/9.152, allocations: 14.84 MB / 2.036 GB, free: 76.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004123/9.156, allocations: 341.1 kB / 2.036 GB, free: 76.01 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08028/9.236, allocations: 40.31 MB / 2.075 GB, free: 47.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/9.236, allocations: 5.906 kB / 2.075 GB, free: 47.61 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1335/9.37, allocations: 48.44 MB / 2.123 GB, free: 5.602 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01461/9.384, allocations: 3.5 MB / 2.126 GB, free: 2.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006204/9.391, allocations: 247.6 kB / 2.126 GB, free: 2.332 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01628/9.407, allocations: 0.7578 MB / 2.127 GB, free: 2.199 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.5123/9.919, allocations: 1.444 MB / 2.129 GB, free: 87.65 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004441/9.924, allocations: 425.3 kB / 2.129 GB, free: 87.65 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01368/9.937, allocations: 4.596 MB / 2.133 GB, free: 87.44 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.71e-07/9.938, allocations: 0 / 2.133 GB, free: 87.44 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02427/9.962, allocations: 3.909 MB / 2.137 GB, free: 87.44 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (834): * Single equations (assignments): 793 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of Backend phase and start with SimCode phase: time 0.005149/9.967, allocations: 0.7999 MB / 2.138 GB, free: 87.34 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.07949/10.05, allocations: 26.65 MB / 2.164 GB, free: 86.19 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/10.05, allocations: 4.531 kB / 2.164 GB, free: 86.19 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0483/10.09, allocations: 15.24 MB / 2.179 GB, free: 84.97 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02209/10.12, allocations: 2.327 MB / 2.181 GB, free: 84.94 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1501/10.27, allocations: 54.16 MB / 2.234 GB, free: 66.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03535/10.3, allocations: 13.48 MB / 2.247 GB, free: 65.18 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008265/10.31, allocations: 0.7273 MB / 2.248 GB, free: 65.18 MB / 0.5573 GB Notification: Performance of SimCode: time 2.014e-06/10.31, allocations: 0 / 2.248 GB, free: 65.18 MB / 0.5573 GB Notification: Performance of Templates: time 6.975/17.29, allocations: 1.774 GB / 4.022 GB, free: 26.99 MB / 0.6198 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.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.InductionMachines.IMC_TransformerCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerFunctions.cpp:587:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp376 = 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_TransformerFunctions.cpp:587:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp376 = 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_TransformerCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.o] Error 1\n'