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.001654/0.001654, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.999/1.999, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00114/0.00114, allocations: 82.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.625e-05/2.641e-05, allocations: 4 kB / 321.5 MB, free: 17.8 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09719/0.09724, allocations: 47.58 MB / 369.1 MB, free: 2.156 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5653/0.6626, allocations: 167.2 MB / 0.5237 GB, free: 6.996 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003725/0.6631, allocations: 102.2 kB / 0.5238 GB, free: 6.941 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.441/6.104, allocations: 0.8579 GB / 1.382 GB, free: 19.56 MB / 490.8 MB Notification: Performance of FrontEnd: time 2.054e-06/6.104, allocations: 0.7812 kB / 1.382 GB, free: 19.56 MB / 490.8 MB Notification: Performance of Transformations before backend: time 0.002968/6.107, allocations: 475.6 kB / 1.382 GB, free: 19.56 MB / 490.8 MB 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.1089/6.216, allocations: 19.58 MB / 1.401 GB, free: 16.02 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/6.216, allocations: 6.438 kB / 1.401 GB, free: 16.02 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08632/6.303, allocations: 10.32 MB / 1.411 GB, free: 14.89 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06034/6.363, allocations: 15.82 MB / 1.427 GB, free: 13.12 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002927/6.366, allocations: 1.551 MB / 1.428 GB, free: 13.08 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01253/6.379, allocations: 2.016 MB / 1.43 GB, free: 13.06 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1295/6.508, allocations: 35.51 MB / 1.465 GB, free: 10.7 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001249/6.509, allocations: 35.78 kB / 1.465 GB, free: 10.69 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01029/6.52, allocations: 0.8624 MB / 1.466 GB, free: 10.69 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002469/6.522, allocations: 1.39 MB / 1.467 GB, free: 10.64 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1013/6.624, allocations: 32.13 MB / 1.499 GB, free: 6.156 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8731/7.497, allocations: 112.9 MB / 1.609 GB, free: 34.23 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07508/7.572, allocations: 43.99 MB / 1.652 GB, free: 30.46 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04498/7.617, allocations: 16.32 MB / 1.668 GB, free: 30.3 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.161/7.778, allocations: 50.36 MB / 1.717 GB, free: 24.15 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/7.778, allocations: 179.6 kB / 1.717 GB, free: 24.01 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=1576): time 2.231e-05/7.778, allocations: 0 / 1.717 GB, free: 24.01 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1588): time 0.2187/7.997, allocations: 58.64 MB / 1.774 GB, free: 9.973 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002138/7.997, allocations: 216 kB / 1.775 GB, free: 9.742 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02018/8.017, allocations: 5.917 MB / 1.78 GB, free: 4.477 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.004096/8.022, allocations: 249.7 kB / 1.781 GB, free: 4.227 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.5189/8.541, allocations: 6.917 MB / 1.787 GB, free: 87.34 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.01/8.551, allocations: 5.206 MB / 1.792 GB, free: 84.5 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004352/8.555, allocations: 257.2 kB / 1.793 GB, free: 84.5 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.002308/8.557, allocations: 0.9097 MB / 1.794 GB, free: 84.16 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03028/8.588, allocations: 10.16 MB / 1.804 GB, free: 84.12 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03202/8.62, allocations: 12.36 MB / 1.816 GB, free: 82.15 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03301/8.653, allocations: 12.11 MB / 1.827 GB, free: 81.98 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001563/8.653, allocations: 16.44 kB / 1.827 GB, free: 81.98 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1865) (initialization): time 0.0938/8.747, allocations: 30.82 MB / 1.858 GB, free: 81.13 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 9.277e-05/8.747, allocations: 26.91 kB / 1.858 GB, free: 81.13 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001804/8.747, allocations: 49.91 kB / 1.858 GB, free: 81.13 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04861/8.796, allocations: 14.61 MB / 1.872 GB, free: 80.59 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01805/8.814, allocations: 2.084 MB / 1.874 GB, free: 80.59 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07413/8.888, allocations: 35.64 MB / 1.909 GB, free: 63.08 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01669/8.905, allocations: 0.6195 MB / 1.909 GB, free: 62.88 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004566/8.909, allocations: 0.5257 MB / 1.91 GB, free: 62.77 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1058): * Single equations (assignments): 1018 * 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 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(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.008231/8.918, allocations: 0.7628 MB / 1.911 GB, free: 62.24 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006119/8.924, allocations: 1.011 MB / 1.912 GB, free: 61.7 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09563/9.02, allocations: 31.93 MB / 1.943 GB, free: 42.8 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006341/9.02, allocations: 381.9 kB / 1.943 GB, free: 42.47 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.349e-05/9.02, allocations: 8 kB / 1.943 GB, free: 42.46 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003385/9.021, allocations: 71.36 kB / 1.943 GB, free: 42.46 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6766/9.697, allocations: 60.22 MB / 2.002 GB, free: 74.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002442/9.698, allocations: 3.875 kB / 2.002 GB, free: 74.7 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01496/9.713, allocations: 1.623 MB / 2.004 GB, free: 74.7 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05019/9.763, allocations: 14.79 MB / 2.018 GB, free: 74.16 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004395/9.767, allocations: 341.7 kB / 2.018 GB, free: 74.16 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07625/9.844, allocations: 39.88 MB / 2.057 GB, free: 62.25 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/9.844, allocations: 9.922 kB / 2.057 GB, free: 62.25 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1266/9.97, allocations: 47.38 MB / 2.104 GB, free: 54.87 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01457/9.985, allocations: 3.483 MB / 2.107 GB, free: 53.51 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006523/9.992, allocations: 242.9 kB / 2.107 GB, free: 53.33 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01575/10.01, allocations: 0.6277 MB / 2.108 GB, free: 53.16 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006278/10.01, allocations: 1.164 MB / 2.109 GB, free: 52.91 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00414/10.02, allocations: 423.7 kB / 2.109 GB, free: 52.81 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.01297/10.03, allocations: 4.528 MB / 2.114 GB, free: 51.1 MB / 0.5574 GB Notification: Performance of sort global known variables: time 7.01e-07/10.03, allocations: 2.75 kB / 2.114 GB, free: 51.1 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.02464/10.06, allocations: 3.903 MB / 2.118 GB, free: 50.69 MB / 0.5574 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (820): * Single equations (assignments): 779 * 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,(3,88.9%) 25,(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.005625/10.06, allocations: 0.9345 MB / 2.119 GB, free: 50.36 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.07386/10.14, allocations: 26.13 MB / 2.144 GB, free: 32.39 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/10.14, allocations: 3.188 kB / 2.144 GB, free: 32.39 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.0454/10.18, allocations: 14.95 MB / 2.159 GB, free: 19.11 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02222/10.2, allocations: 2.33 MB / 2.161 GB, free: 17.32 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6499/10.85, allocations: 42.07 MB / 2.202 GB, free: 83.53 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03618/10.89, allocations: 13.47 MB / 2.215 GB, free: 82.42 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007119/10.9, allocations: 0.7246 MB / 2.216 GB, free: 82.42 MB / 0.573 GB Notification: Performance of SimCode: time 1.713e-06/10.9, allocations: 0 / 2.216 GB, free: 82.42 MB / 0.573 GB Notification: Performance of Templates: time 7.102/18, allocations: 1.773 GB / 3.989 GB, free: 118.7 MB / 0.6199 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'