Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_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.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|smee.is.1.|smee.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|smee.is.1.|smee.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002496/0.002501, allocations: 187.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.496/3.496, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.002568/0.002568, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006576/0.0006581, allocations: 8 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1631, allocations: 47.58 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.02654/0.1897, allocations: 10.36 MB / 384.9 MB, free: 5.027 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01591/0.2057, allocations: 4.149 MB / 389.1 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003545/0.2093, allocations: 59.69 kB / 389.1 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005593/0.2149, allocations: 0.8008 MB / 389.9 MB, free: 4 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3882/0.6032, allocations: 0.9754 MB / 390.9 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003344/0.6066, allocations: 335.7 kB / 391.2 MB, free: 9.695 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0115/0.6182, allocations: 2.963 MB / 394.2 MB, free: 9.684 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01232/0.6306, allocations: 2.522 MB / 396.7 MB, free: 9.211 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006302/0.6369, allocations: 1.447 MB / 398.2 MB, free: 9.211 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008046/0.6451, allocations: 1.81 MB / 400 MB, free: 9.129 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002869/0.648, allocations: 242.3 kB / 400.2 MB, free: 9.129 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004543/0.6526, allocations: 306.9 kB / 400.5 MB, free: 9.129 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004682/0.6574, allocations: 1.078 MB / 401.6 MB, free: 8.992 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004389/0.6618, allocations: 0.8412 MB / 402.4 MB, free: 8.824 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01512/0.677, allocations: 5.95 MB / 408.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.6771, allocations: 0 / 408.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.448e-06/0.6771, allocations: 0 / 408.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002977/0.6774, allocations: 1.344 kB / 408.4 MB, free: 6.227 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.02314/0.7006, allocations: 3.973 MB / 412.3 MB, free: 3.949 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.588e-05/0.7007, allocations: 13.88 kB / 412.4 MB, free: 3.945 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005076/0.7058, allocations: 0.4931 MB / 412.8 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01234/0.7182, allocations: 2.307 MB / 415.2 MB, free: 2.805 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005631/0.7188, allocations: 275.3 kB / 415.4 MB, free: 2.789 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002553/0.7214, allocations: 354.9 kB / 415.8 MB, free: 2.781 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0285/0.75, allocations: 4.971 MB / 420.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003157/0.7504, allocations: 15.83 kB / 420.8 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00215/0.7526, allocations: 147.1 kB / 420.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004817/0.7531, allocations: 183 kB / 421.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02571/0.7789, allocations: 4.287 MB / 425.4 MB, free: 9.941 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0714/0.8503, allocations: 14.95 MB / 440.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01311/0.8635, allocations: 4.204 MB / 444.5 MB, free: 6.301 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007977/0.8644, allocations: 138.5 kB / 444.7 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.202e-05/0.8645, allocations: 52.56 kB / 444.7 MB, free: 6.094 MB / 314.7 MB Notification: Performance of pre-optimization done (n=198): time 8.416e-06/0.8645, allocations: 0 / 444.7 MB, free: 6.094 MB / 314.7 MB Notification: Performance of matching and sorting (n=218): time 0.06375/0.9283, allocations: 10.32 MB / 455 MB, free: 11.64 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.9285, allocations: 73.41 kB / 455.1 MB, free: 11.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.011/0.9395, allocations: 2.459 MB / 457.6 MB, free: 9.074 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008073/0.9404, allocations: 61.7 kB / 457.6 MB, free: 9.008 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002792/0.9432, allocations: 1.498 MB / 459.1 MB, free: 7.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00199/0.9453, allocations: 0.7291 MB / 459.8 MB, free: 6.777 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006681/0.946, allocations: 48 kB / 459.9 MB, free: 6.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0005105/0.9466, allocations: 411.4 kB / 460.3 MB, free: 6.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006542/0.9531, allocations: 1.316 MB / 461.6 MB, free: 5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007462/0.9607, allocations: 1.786 MB / 463.4 MB, free: 3.023 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00762/0.9684, allocations: 1.579 MB / 465 MB, free: 1.445 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-05/0.9685, allocations: 4 kB / 465 MB, free: 1.441 MB / 330.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.02144/0.9899, allocations: 3.936 MB / 468.9 MB, free: 13.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.079e-05/0.99, allocations: 8 kB / 468.9 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.302e-05/0.9901, allocations: 16.47 kB / 468.9 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00809/0.9982, allocations: 0.8868 MB / 469.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006078/1.004, allocations: 0.5227 MB / 470.3 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02572/1.03, allocations: 8.936 MB / 479.3 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005266/1.035, allocations: 127.9 kB / 479.4 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009948/1.037, allocations: 87.98 kB / 479.5 MB, free: 2.492 MB / 346.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 (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 (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.006373/1.043, allocations: 1.212 MB / 480.7 MB, free: 1.27 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001623/1.045, allocations: 276.7 kB / 481 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01852/1.063, allocations: 3.769 MB / 484.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.547e-05/1.063, allocations: 20 kB / 484.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.385e-05/1.063, allocations: 8 kB / 484.8 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.372e-05/1.063, allocations: 11.95 kB / 484.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04174/1.105, allocations: 8.083 MB / 492.9 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.979e-05/1.105, allocations: 7.953 kB / 492.9 MB, free: 5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004803/1.11, allocations: 391.6 kB / 493.3 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008381/1.119, allocations: 0.9203 MB / 494.2 MB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007313/1.119, allocations: 55.97 kB / 494.2 MB, free: 3.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02967/1.149, allocations: 10.42 MB / 0.4928 GB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-05/1.149, allocations: 4 kB / 0.4928 GB, free: 8.672 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02831/1.178, allocations: 5.802 MB / 0.4985 GB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004266/1.182, allocations: 0.6382 MB / 0.4991 GB, free: 2.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002196/1.184, allocations: 47.98 kB / 0.4992 GB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00514/1.189, allocations: 127.9 kB / 0.4993 GB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001587/1.191, allocations: 185.8 kB / 0.4995 GB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006805/1.192, allocations: 59.98 kB / 0.4995 GB, free: 1.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008149/1.2, allocations: 1.676 MB / 0.5012 GB, free: 15.97 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.573e-06/1.2, allocations: 0 / 0.5012 GB, free: 15.97 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008318/1.208, allocations: 0.793 MB / 0.5019 GB, free: 15.18 MB / 394.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 (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 (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.001631/1.21, allocations: 211.5 kB / 0.5021 GB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01867/1.229, allocations: 3.935 MB / 0.506 GB, free: 10.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.871e-05/1.229, allocations: 2.406 kB / 0.506 GB, free: 10.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01199/1.241, allocations: 2.51 MB / 0.5084 GB, free: 8.375 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009867/1.251, allocations: 0.7143 MB / 0.5091 GB, free: 7.656 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04051/1.291, allocations: 9.109 MB / 0.518 GB, free: 14.49 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008804/1.3, allocations: 2.8 MB / 0.5208 GB, free: 11.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002453/1.303, allocations: 191.3 kB / 0.5209 GB, free: 11.47 MB / 410.7 MB Notification: Performance of SimCode: time 1.814e-06/1.303, allocations: 0 / 0.5209 GB, free: 11.47 MB / 410.7 MB Notification: Performance of Templates: time 0.9725/2.275, allocations: 134.1 MB / 0.6519 GB, free: 22.08 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile make -j1 -f Modelica_3.2.3_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/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.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.cpp:3180:28: error: use of undeclared identifier \'tmp37\'\n _transformerData_P_C1_ = tmp37;\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.cpp:3181:28: error: use of undeclared identifier \'tmp38\'\n _transformerData_P_C2_ = tmp38;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.o] Error 1\n'