Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002844/0.002844, allocations: 189.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.559/3.559, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001795/0.001795, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006531/0.0006534, allocations: 8 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2039, allocations: 47.58 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.04006/0.244, allocations: 13.47 MB / 388 MB, free: 1.91 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.4172/0.6614, allocations: 5.493 MB / 393.5 MB, free: 9.285 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005453/0.6669, allocations: 90.94 kB / 393.6 MB, free: 9.285 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008479/0.6755, allocations: 1.046 MB / 394.6 MB, free: 9.281 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0128/0.6883, allocations: 1.515 MB / 396.2 MB, free: 9.238 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006725/0.6951, allocations: 0.7053 MB / 396.9 MB, free: 9.184 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01716/0.7124, allocations: 4.173 MB / 401 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01612/0.7286, allocations: 3.473 MB / 404.5 MB, free: 8.219 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009466/0.7381, allocations: 1.943 MB / 406.5 MB, free: 7.789 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01032/0.7485, allocations: 2.334 MB / 408.8 MB, free: 7.02 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003284/0.7519, allocations: 326.7 kB / 409.1 MB, free: 7.02 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006962/0.759, allocations: 0.5383 MB / 409.6 MB, free: 6.961 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004882/0.7639, allocations: 1.238 MB / 410.9 MB, free: 6.137 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006086/0.7701, allocations: 1.139 MB / 412 MB, free: 5.457 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02085/0.791, allocations: 8.527 MB / 420.6 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.7911, allocations: 0 / 420.6 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.33e-06/0.7912, allocations: 4 kB / 420.6 MB, free: 15.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000405/0.7916, allocations: 0 / 420.6 MB, free: 15.02 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.03562/0.8272, allocations: 5.521 MB / 426.1 MB, free: 9.656 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.231e-05/0.8273, allocations: 8.031 kB / 426.1 MB, free: 9.648 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01571/0.8431, allocations: 1.06 MB / 427.1 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02078/0.8639, allocations: 3.267 MB / 430.4 MB, free: 5.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001012/0.865, allocations: 365.7 kB / 430.8 MB, free: 4.891 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00348/0.8686, allocations: 479.9 kB / 431.2 MB, free: 4.422 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04041/0.9091, allocations: 6.806 MB / 438 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004246/0.9096, allocations: 4 kB / 438 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002645/0.9123, allocations: 204 kB / 438.2 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006099/0.9129, allocations: 239.9 kB / 438.5 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03319/0.9462, allocations: 5.91 MB / 444.4 MB, free: 7.176 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0991/1.045, allocations: 21.01 MB / 465.4 MB, free: 1.738 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02667/1.072, allocations: 9.954 MB / 475.3 MB, free: 6.758 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02868/1.101, allocations: 5.431 MB / 480.8 MB, free: 1.219 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001431/1.101, allocations: 60.55 kB / 480.8 MB, free: 1.148 MB / 346.7 MB Notification: Performance of pre-optimization done (n=227): time 9.087e-06/1.101, allocations: 6.188 kB / 480.8 MB, free: 1.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=234): time 0.06095/1.162, allocations: 9.823 MB / 490.7 MB, free: 7.133 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001709/1.162, allocations: 77.41 kB / 490.7 MB, free: 7.047 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01412/1.176, allocations: 2.921 MB / 493.7 MB, free: 4.109 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001013/1.178, allocations: 69.7 kB / 493.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006619/1.184, allocations: 1.991 MB / 495.7 MB, free: 2.023 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002789/1.187, allocations: 0.7894 MB / 496.5 MB, free: 1.223 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004639/1.188, allocations: 48 kB / 496.6 MB, free: 1.176 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005084/1.188, allocations: 416.2 kB / 497 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006976/1.195, allocations: 1.329 MB / 498.3 MB, free: 15.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008598/1.204, allocations: 1.937 MB / 0.4885 GB, free: 13.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008023/1.212, allocations: 1.634 MB / 0.4901 GB, free: 11.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.084e-05/1.212, allocations: 4 kB / 0.4901 GB, free: 11.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.02153/1.234, allocations: 4.118 MB / 0.4941 GB, free: 7.371 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.79e-05/1.234, allocations: 12 kB / 0.4941 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-05/1.234, allocations: 20 kB / 0.4942 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007691/1.242, allocations: 0.7733 MB / 0.4949 GB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007649/1.249, allocations: 0.5812 MB / 0.4955 GB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02878/1.278, allocations: 10.21 MB / 0.5055 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006134/1.285, allocations: 107.9 kB / 0.5056 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/1.286, allocations: 104 kB / 0.5057 GB, free: 11.02 MB / 394.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.008401/1.294, allocations: 1.614 MB / 0.5072 GB, free: 9.391 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00211/1.296, allocations: 312.2 kB / 0.5075 GB, free: 9.082 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02171/1.318, allocations: 4.008 MB / 0.5114 GB, free: 5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.884e-05/1.318, allocations: 24 kB / 0.5115 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-05/1.318, allocations: 12 kB / 0.5115 GB, free: 4.965 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.332e-05/1.318, allocations: 11.95 kB / 0.5115 GB, free: 4.953 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04447/1.363, allocations: 8.701 MB / 0.52 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.874e-05/1.363, allocations: 4.188 kB / 0.52 GB, free: 12.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006153/1.369, allocations: 363.8 kB / 0.5203 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009064/1.378, allocations: 0.9576 MB / 0.5213 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008123/1.379, allocations: 55.98 kB / 0.5213 GB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5139/1.893, allocations: 14.65 MB / 0.5356 GB, free: 122.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/1.893, allocations: 2.781 kB / 0.5356 GB, free: 122.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02769/1.921, allocations: 6.02 MB / 0.5415 GB, free: 120.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004433/1.925, allocations: 0.696 MB / 0.5422 GB, free: 119.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002172/1.928, allocations: 55.92 kB / 0.5422 GB, free: 119.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005085/1.933, allocations: 121.5 kB / 0.5424 GB, free: 119.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001558/1.934, allocations: 190.3 kB / 0.5425 GB, free: 119.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005956/1.935, allocations: 71.77 kB / 0.5426 GB, free: 119.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.009266/1.944, allocations: 2.007 MB / 0.5446 GB, free: 119 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.382e-06/1.944, allocations: 0 / 0.5446 GB, free: 119 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009226/1.954, allocations: 0.9438 MB / 0.5455 GB, free: 118.9 MB / 410.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.001559/1.955, allocations: 213.7 kB / 0.5457 GB, free: 118.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01775/1.973, allocations: 3.978 MB / 0.5496 GB, free: 116.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.568e-05/1.973, allocations: 1.781 kB / 0.5496 GB, free: 116.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01114/1.984, allocations: 2.699 MB / 0.5522 GB, free: 115.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01033/1.995, allocations: 0.8481 MB / 0.553 GB, free: 115.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05238/2.047, allocations: 11.24 MB / 0.564 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00931/2.057, allocations: 3.425 MB / 0.5674 GB, free: 107.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00232/2.059, allocations: 212.2 kB / 0.5676 GB, free: 107.8 MB / 410.7 MB Notification: Performance of SimCode: time 2.284e-06/2.059, allocations: 0 / 0.5676 GB, free: 107.8 MB / 410.7 MB Notification: Performance of Templates: time 1.026/3.085, allocations: 191.8 MB / 0.7548 GB, free: 85.69 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile make -j1 -f Modelica_3.2.3_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/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.FundamentalWave.Examples.BasicMachines.AIMC_TransformerCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_TransformerCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_TransformerCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.3_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.3_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.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_TransformerCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_TransformerCalcHelperMain.o] Error 1\n'