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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadModel(Modelica): time 1.982/1.982, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003607, allocations: 11.98 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08177/0.08216, allocations: 44.5 MB / 308.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03753/0.1197, allocations: 24.61 MB / 333 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02101/0.1408, allocations: 8.236 MB / 341.2 MB, free: 60 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006299/0.1472, allocations: 155.5 kB / 341.4 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006619/0.1538, allocations: 1.574 MB / 342.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01349/0.1674, allocations: 3.151 MB / 346.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006467/0.1738, allocations: 1.287 MB / 347.4 MB, free: 9.879 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01577/0.1896, allocations: 7.414 MB / 354.8 MB, free: 2.453 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0246/0.2143, allocations: 9.867 MB / 364.7 MB, free: 8.504 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006292/0.2206, allocations: 2.967 MB / 367.6 MB, free: 5.527 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006796/0.2274, allocations: 3.362 MB / 371 MB, free: 2.152 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002075/0.2296, allocations: 476 kB / 371.5 MB, free: 1.688 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003818/0.2334, allocations: 0.7457 MB / 372.2 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.2261/0.4595, allocations: 1.503 MB / 373.7 MB, free: 21.39 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003271/0.4628, allocations: 1.586 MB / 375.3 MB, free: 21.36 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01701/0.4799, allocations: 13.06 MB / 388.4 MB, free: 17.4 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.475e-06/0.4799, allocations: 0.5625 kB / 388.4 MB, free: 17.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.86e-06/0.48, allocations: 0 / 388.4 MB, free: 17.4 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004196/0.4804, allocations: 0 / 388.4 MB, free: 17.4 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02888/0.5093, allocations: 8.218 MB / 396.6 MB, free: 13.22 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.5093, allocations: 9.344 kB / 396.6 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03647/0.5458, allocations: 5.181 MB / 401.8 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01183/0.5577, allocations: 4.598 MB / 406.4 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006376/0.5584, allocations: 0.5321 MB / 406.9 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002781/0.5612, allocations: 0.7055 MB / 407.6 MB, free: 9.898 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03217/0.5934, allocations: 11.25 MB / 418.9 MB, free: 5.848 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003865/0.5938, allocations: 28 kB / 418.9 MB, free: 5.828 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002472/0.5963, allocations: 297.1 kB / 419.2 MB, free: 5.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005035/0.5968, allocations: 443.5 kB / 419.6 MB, free: 5.367 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02842/0.6253, allocations: 10.76 MB / 430.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08919/0.7145, allocations: 38.11 MB / 468.5 MB, free: 8.215 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03034/0.7449, allocations: 28.07 MB / 496.5 MB, free: 8.332 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02189/0.7668, allocations: 7.976 MB / 0.4927 GB, free: 356 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.423e-05/0.767, allocations: 60.31 kB / 0.4928 GB, free: 288 kB / 394.7 MB Notification: Performance of pre-optimization done (n=222): time 5.491e-06/0.767, allocations: 0 / 0.4928 GB, free: 288 kB / 394.7 MB Notification: Performance of matching and sorting (n=238): time 0.03098/0.798, allocations: 10.42 MB / 0.5029 GB, free: 5.852 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002983/0.801, allocations: 1.935 MB / 0.5048 GB, free: 3.766 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009228/0.8103, allocations: 3.742 MB / 0.5085 GB, free: 48 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005264/0.8108, allocations: 71.88 kB / 0.5086 GB, free: 15.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003752/0.8146, allocations: 3.405 MB / 0.5119 GB, free: 12.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00135/0.816, allocations: 0.8481 MB / 0.5127 GB, free: 11.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005167/0.8165, allocations: 100 kB / 0.5128 GB, free: 11.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005362/0.8171, allocations: 0.5054 MB / 0.5133 GB, free: 11.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004825/0.8219, allocations: 1.891 MB / 0.5151 GB, free: 9.215 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007579/0.8295, allocations: 4.394 MB / 0.5194 GB, free: 3.633 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006571/0.8362, allocations: 2.835 MB / 0.5222 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.347e-05/0.8363, allocations: 24 kB / 0.5222 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of matching and sorting (n=632) (initialization): time 0.2539/1.09, allocations: 6.805 MB / 0.5289 GB, free: 147.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.209e-05/1.09, allocations: 44.2 kB / 0.5289 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001362/1.09, allocations: 89.53 kB / 0.529 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002938/1.093, allocations: 0.7503 MB / 0.5297 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005455/1.099, allocations: 1.128 MB / 0.5308 GB, free: 147.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009518/1.108, allocations: 5.398 MB / 0.5361 GB, free: 144.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005499/1.114, allocations: 308.3 kB / 0.5364 GB, free: 144.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00103/1.115, allocations: 271.2 kB / 0.5367 GB, free: 144.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (595): * Single equations (assignments): 592 * 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: 1 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006366/1.121, allocations: 2.526 MB / 0.5391 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.123, allocations: 390 kB / 0.5395 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/1.133, allocations: 4.316 MB / 0.5437 GB, free: 141.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.739e-05/1.133, allocations: 24.92 kB / 0.5437 GB, free: 141.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/1.133, allocations: 7.75 kB / 0.5437 GB, free: 141.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.029e-05/1.134, allocations: 21.84 kB / 0.5438 GB, free: 141.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03279/1.166, allocations: 14.32 MB / 0.5577 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.901e-05/1.166, allocations: 16 kB / 0.5578 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002613/1.169, allocations: 489.3 kB / 0.5582 GB, free: 131.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002689/1.172, allocations: 0.6948 MB / 0.5589 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005117/1.172, allocations: 67.8 kB / 0.559 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01112/1.183, allocations: 7.148 MB / 0.566 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002101/1.186, allocations: 1.88 MB / 0.5678 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0128/1.198, allocations: 6.791 MB / 0.5744 GB, free: 115.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002623/1.201, allocations: 0.8026 MB / 0.5752 GB, free: 114.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001279/1.202, allocations: 63.98 kB / 0.5753 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003312/1.206, allocations: 163.8 kB / 0.5754 GB, free: 114.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007946/1.207, allocations: 229.4 kB / 0.5756 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002838/1.207, allocations: 83.98 kB / 0.5757 GB, free: 114.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005751/1.213, allocations: 2.447 MB / 0.5781 GB, free: 111.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.216e-06/1.213, allocations: 0 / 0.5781 GB, free: 111.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007623/1.22, allocations: 1.296 MB / 0.5794 GB, free: 110.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (246): * Single equations (assignments): 243 * 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: 2 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008576/1.221, allocations: 223.5 kB / 0.5796 GB, free: 110.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01016/1.231, allocations: 5.153 MB / 0.5846 GB, free: 104.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.232, allocations: 0 / 0.5846 GB, free: 104.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004988/1.237, allocations: 2.431 MB / 0.587 GB, free: 102.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005396/1.242, allocations: 0.903 MB / 0.5879 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02773/1.27, allocations: 14.65 MB / 0.6022 GB, free: 86.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008634/1.278, allocations: 4.507 MB / 0.6066 GB, free: 82.18 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001641/1.28, allocations: 331.4 kB / 0.6069 GB, free: 81.86 MB / 426.7 MB Notification: Performance of SimCode: time 1.815e-06/1.28, allocations: 5.031 kB / 0.6069 GB, free: 81.85 MB / 426.7 MB Notification: Performance of Templates: time 0.4651/1.745, allocations: 189.3 MB / 0.7918 GB, free: 39.02 MB / 426.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:99:42: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp62 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:99:85: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp62 = 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.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o] Error 1\n'