Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadModel(Modelica): time 1.868/1.868, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.000357, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08275/0.08313, allocations: 44.5 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.0204/0.1036, allocations: 13.74 MB / 322.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01313/0.1168, allocations: 5.437 MB / 327.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003639/0.1205, allocations: 83.62 kB / 327.6 MB, free: 13.71 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004214/0.1247, allocations: 1.046 MB / 328.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006867/0.1316, allocations: 1.519 MB / 330.2 MB, free: 11.13 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003399/0.1351, allocations: 0.7095 MB / 330.9 MB, free: 10.42 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.009213/0.1443, allocations: 4.242 MB / 335.1 MB, free: 6.168 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007424/0.1518, allocations: 3.47 MB / 338.6 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00442/0.1563, allocations: 1.97 MB / 340.6 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00488/0.1612, allocations: 2.366 MB / 342.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001482/0.1627, allocations: 328 kB / 343.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002806/0.1656, allocations: 0.527 MB / 343.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002425/0.168, allocations: 1.246 MB / 345 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0025/0.1706, allocations: 1.143 MB / 346.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01334/0.184, allocations: 8.539 MB / 354.7 MB, free: 2.477 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.731e-06/0.184, allocations: 0 / 354.7 MB, free: 2.477 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.951e-06/0.184, allocations: 0 / 354.7 MB, free: 2.477 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002135/0.1843, allocations: 4 kB / 354.7 MB, free: 2.473 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01745/0.2017, allocations: 5.528 MB / 360.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.2018, allocations: 12.03 kB / 360.3 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007285/0.2091, allocations: 1.055 MB / 361.3 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009326/0.2185, allocations: 3.249 MB / 364.6 MB, free: 8.465 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005621/0.2191, allocations: 369.7 kB / 364.9 MB, free: 8.102 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001601/0.2207, allocations: 483.8 kB / 365.4 MB, free: 7.629 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02066/0.2414, allocations: 6.838 MB / 372.2 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001632/0.2416, allocations: 11.83 kB / 372.2 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001065/0.2427, allocations: 200 kB / 372.4 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003185/0.243, allocations: 245.8 kB / 372.7 MB, free: 268 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2272/0.4702, allocations: 5.907 MB / 378.6 MB, free: 53.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04514/0.5154, allocations: 21.02 MB / 399.6 MB, free: 39.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0103/0.5258, allocations: 9.952 MB / 409.6 MB, free: 29.65 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0117/0.5375, allocations: 5.459 MB / 415 MB, free: 24.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.146e-05/0.5376, allocations: 64.56 kB / 415.1 MB, free: 24.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=227): time 6.192e-06/0.5376, allocations: 0 / 415.1 MB, free: 24.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=234): time 0.02364/0.5612, allocations: 9.826 MB / 424.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.5614, allocations: 85.39 kB / 425 MB, free: 13.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005562/0.5669, allocations: 2.925 MB / 427.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000366/0.5673, allocations: 65.7 kB / 428 MB, free: 10.94 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.5686, allocations: 2.001 MB / 430 MB, free: 8.926 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008082/0.5695, allocations: 0.7834 MB / 430.8 MB, free: 8.148 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.5697, allocations: 52 kB / 430.8 MB, free: 8.098 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.5699, allocations: 416.2 kB / 431.2 MB, free: 7.684 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002768/0.5726, allocations: 1.325 MB / 432.5 MB, free: 6.355 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003497/0.5762, allocations: 1.945 MB / 434.5 MB, free: 4.152 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00338/0.5796, allocations: 1.636 MB / 436.1 MB, free: 2.496 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.179e-05/0.5797, allocations: 8 kB / 436.1 MB, free: 2.488 MB / 314.7 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.009739/0.5894, allocations: 4.117 MB / 440.2 MB, free: 14.29 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.177e-05/0.5895, allocations: 12 kB / 440.3 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.824e-05/0.5896, allocations: 20 kB / 440.3 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00359/0.5932, allocations: 0.7704 MB / 441.1 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003418/0.5966, allocations: 0.5851 MB / 441.6 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01652/0.6132, allocations: 10.21 MB / 451.8 MB, free: 2.164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002685/0.6159, allocations: 111.8 kB / 452 MB, free: 2.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004946/0.6165, allocations: 100 kB / 452.1 MB, free: 1.957 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (284): * Single equations (assignments): 279 * 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 {(1,100.0%) 8,(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004257/0.6207, allocations: 1.614 MB / 453.7 MB, free: 340 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009587/0.6217, allocations: 312.2 kB / 454 MB, free: 24 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01062/0.6323, allocations: 4.016 MB / 458 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.67e-05/0.6324, allocations: 24 kB / 458 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.813e-05/0.6325, allocations: 15.94 kB / 458 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.418e-05/0.6325, allocations: 11.95 kB / 458 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02661/0.6592, allocations: 8.721 MB / 466.8 MB, free: 3.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.288e-05/0.6592, allocations: 4 kB / 466.8 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002358/0.6616, allocations: 363.8 kB / 467.1 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004536/0.6662, allocations: 0.9478 MB / 468.1 MB, free: 1.742 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004482/0.6667, allocations: 63.97 kB / 468.1 MB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02398/0.6907, allocations: 14.68 MB / 482.8 MB, free: 2.227 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.712e-06/0.6907, allocations: 8.016 kB / 482.8 MB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01469/0.7054, allocations: 5.847 MB / 488.7 MB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002371/0.7078, allocations: 0.7003 MB / 489.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009022/0.7088, allocations: 55.98 kB / 489.4 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002313/0.7111, allocations: 119.9 kB / 489.5 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007486/0.7119, allocations: 193.8 kB / 489.7 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002659/0.7122, allocations: 63.98 kB / 489.8 MB, free: 11.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005003/0.7172, allocations: 2.011 MB / 491.8 MB, free: 9.117 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.319e-06/0.7173, allocations: 0 / 491.8 MB, free: 9.117 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005055/0.7223, allocations: 0.9583 MB / 492.8 MB, free: 8.164 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (164): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002491/0.7249, allocations: 231.6 kB / 493 MB, free: 7.941 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01114/0.736, allocations: 3.981 MB / 497 MB, free: 3.887 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.538e-05/0.7361, allocations: 8 kB / 497 MB, free: 3.879 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01092/0.7471, allocations: 2.692 MB / 499.7 MB, free: 1.109 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006792/0.7539, allocations: 0.845 MB / 0.4888 GB, free: 268 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0272/0.7811, allocations: 11.25 MB / 0.4998 GB, free: 4.957 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00667/0.7879, allocations: 3.429 MB / 0.5031 GB, free: 1.492 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/0.7892, allocations: 211.4 kB / 0.5033 GB, free: 1.285 MB / 394.7 MB Notification: Performance of SimCode: time 2.183e-06/0.7892, allocations: 0 / 0.5033 GB, free: 1.285 MB / 394.7 MB Notification: Performance of Templates: time 0.7263/1.516, allocations: 191.8 MB / 0.6907 GB, free: 142.3 MB / 426.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_TransformerCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_TransformerCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_TransformerCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.cpp:3180:28: error: use of undeclared identifier \'tmp50\'\n _transformerData_P_C1_ = tmp50;\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.cpp:3181:28: error: use of undeclared identifier \'tmp51\'\n _transformerData_P_C2_ = tmp51;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_TransformerCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_TransformerCalcHelperMain.o] Error 1\n'