Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") Notification: Performance of loadModel(Modelica): time 1.58/1.58, allocations: 171.1 MB / 186.7 MB, free: 1.055 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003596, allocations: 12 kB / 233.2 MB, free: 3.047 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07022/0.07061, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01607/0.08672, allocations: 10.53 MB / 282.5 MB, free: 1.617 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.009762/0.09654, allocations: 4.105 MB / 286.6 MB, free: 13.5 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002535/0.09912, allocations: 59.69 kB / 286.6 MB, free: 13.45 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003163/0.1023, allocations: 0.8086 MB / 287.4 MB, free: 12.63 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00455/0.1069, allocations: 0.9892 MB / 288.4 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001685/0.1086, allocations: 323.6 kB / 288.7 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006242/0.1149, allocations: 2.994 MB / 291.7 MB, free: 8.324 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005185/0.1202, allocations: 2.514 MB / 294.2 MB, free: 5.762 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003263/0.1235, allocations: 1.471 MB / 295.7 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003683/0.1272, allocations: 1.809 MB / 297.5 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009817/0.1282, allocations: 244 kB / 297.8 MB, free: 2.23 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001544/0.1298, allocations: 307.9 kB / 298.1 MB, free: 1.93 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001842/0.1317, allocations: 1.083 MB / 299.1 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1838/0.3155, allocations: 0.8417 MB / 300 MB, free: 13.17 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008094/0.3237, allocations: 5.934 MB / 305.9 MB, free: 12.41 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.464e-06/0.3237, allocations: 1.25 kB / 305.9 MB, free: 12.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.3237, allocations: 0 / 305.9 MB, free: 12.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001998/0.3239, allocations: 0 / 305.9 MB, free: 12.41 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 929 * Number of variables: 929 Notification: Performance of Generate backend data structure: time 0.01065/0.3346, allocations: 3.964 MB / 309.9 MB, free: 10.16 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3347, allocations: 12.59 kB / 309.9 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002537/0.3372, allocations: 0.4913 MB / 310.4 MB, free: 9.918 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006115/0.3434, allocations: 2.294 MB / 312.7 MB, free: 9.102 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003223/0.3437, allocations: 269.1 kB / 312.9 MB, free: 9.09 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001292/0.345, allocations: 349.6 kB / 313.3 MB, free: 9.086 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01347/0.3585, allocations: 4.978 MB / 318.3 MB, free: 7.867 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001281/0.3587, allocations: 7.016 kB / 318.3 MB, free: 7.863 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000723/0.3594, allocations: 145.7 kB / 318.4 MB, free: 7.863 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001896/0.3596, allocations: 179.5 kB / 318.6 MB, free: 7.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/0.3712, allocations: 4.263 MB / 322.9 MB, free: 7.121 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03317/0.4044, allocations: 14.89 MB / 337.7 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007127/0.4116, allocations: 4.192 MB / 341.9 MB, free: 6.551 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004036/0.412, allocations: 135 kB / 342.1 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.344e-05/0.4121, allocations: 60.55 kB / 342.1 MB, free: 6.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=198): time 5.511e-06/0.4121, allocations: 0 / 342.1 MB, free: 6.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=218): time 0.03018/0.4423, allocations: 10.31 MB / 352.4 MB, free: 11.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.641e-05/0.4424, allocations: 73.41 kB / 352.5 MB, free: 11.85 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005853/0.4483, allocations: 2.428 MB / 354.9 MB, free: 9.402 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004643/0.4488, allocations: 69.7 kB / 355 MB, free: 9.328 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00163/0.4505, allocations: 1.483 MB / 356.5 MB, free: 7.836 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001208/0.4517, allocations: 0.7334 MB / 357.2 MB, free: 7.109 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000255/0.452, allocations: 48 kB / 357.3 MB, free: 7.062 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003223/0.4523, allocations: 407.4 kB / 357.7 MB, free: 6.656 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003237/0.4556, allocations: 1.32 MB / 359 MB, free: 5.336 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003896/0.4595, allocations: 1.798 MB / 360.8 MB, free: 3.344 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003847/0.4634, allocations: 1.572 MB / 362.4 MB, free: 1.789 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-05/0.4634, allocations: 4 kB / 362.4 MB, free: 1.785 MB / 282.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.01028/0.4737, allocations: 3.938 MB / 366.3 MB, free: 13.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.37e-05/0.4738, allocations: 15.5 kB / 366.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.27e-05/0.4739, allocations: 12 kB / 366.3 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003979/0.4779, allocations: 0.8885 MB / 367.2 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003055/0.481, allocations: 0.527 MB / 367.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01525/0.4962, allocations: 8.939 MB / 376.7 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002774/0.4991, allocations: 127.8 kB / 376.8 MB, free: 3.078 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005766/0.4997, allocations: 88 kB / 376.9 MB, free: 2.992 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (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 initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003939/0.5037, allocations: 1.212 MB / 378.1 MB, free: 1.797 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009926/0.5047, allocations: 280.7 kB / 378.4 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01049/0.5152, allocations: 3.759 MB / 382.1 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-05/0.5153, allocations: 24 kB / 382.2 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.367e-05/0.5153, allocations: 4 kB / 382.2 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.167e-05/0.5154, allocations: 7.969 kB / 382.2 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02301/0.5384, allocations: 8.09 MB / 390.3 MB, free: 5.617 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-05/0.5385, allocations: 4.344 kB / 390.3 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002422/0.5409, allocations: 383.5 kB / 390.6 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004537/0.5455, allocations: 0.9354 MB / 391.6 MB, free: 4.305 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004671/0.546, allocations: 55.98 kB / 391.6 MB, free: 4.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0175/0.5635, allocations: 10.43 MB / 402.1 MB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.453e-06/0.5636, allocations: 0 / 402.1 MB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/0.5777, allocations: 5.592 MB / 407.6 MB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/0.5802, allocations: 0.6343 MB / 408.3 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001011/0.5813, allocations: 58.61 kB / 408.3 MB, free: 2.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002374/0.5837, allocations: 127.9 kB / 408.5 MB, free: 2.855 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000631/0.5844, allocations: 176.4 kB / 408.6 MB, free: 2.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002348/0.5846, allocations: 63.94 kB / 408.7 MB, free: 2.625 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.004289/0.5889, allocations: 1.664 MB / 410.4 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.437e-06/0.589, allocations: 2.297 kB / 410.4 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004436/0.5934, allocations: 0.797 MB / 411.2 MB, free: 156 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (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 (175): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008878/0.5943, allocations: 205.5 kB / 411.4 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009624/0.604, allocations: 3.937 MB / 415.3 MB, free: 12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.899e-06/0.604, allocations: 0 / 415.3 MB, free: 12 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006251/0.6103, allocations: 2.502 MB / 417.8 MB, free: 9.469 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004765/0.6151, allocations: 0.7219 MB / 418.5 MB, free: 8.746 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02198/0.6371, allocations: 9.089 MB / 427.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004807/0.642, allocations: 2.78 MB / 430.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001247/0.6433, allocations: 187.4 kB / 430.6 MB, free: 12.62 MB / 362.7 MB Notification: Performance of SimCode: time 1.904e-06/0.6433, allocations: 0 / 430.6 MB, free: 12.62 MB / 362.7 MB Notification: Performance of Templates: time 0.4039/1.047, allocations: 133.3 MB / 0.5507 GB, free: 21.49 MB / 362.7 MB make -j1 -f Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.o OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.cpp:3178:28: error: use of undeclared identifier \'tmp37\'\n _transformerData_P_C1_ = tmp37;\n ^\n./OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.cpp:3179:28: error: use of undeclared identifier \'tmp38\'\n _transformerData_P_C2_ = tmp38;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.o] Error 1\n'