Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002278/0.002278, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.896/1.896, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001126/0.001126, allocations: 88.42 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003789/0.000379, allocations: 8 kB / 327 MB, free: 220 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3238, allocations: 47.57 MB / 374.5 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5074/0.8312, allocations: 135.8 MB / 0.4983 GB, free: 63.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.8315, allocations: 91.27 kB / 0.4984 GB, free: 63.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4979/1.329, allocations: 131.1 MB / 0.6265 GB, free: 10.76 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.387e-06/1.329, allocations: 0 / 0.6265 GB, free: 10.76 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007594/1.33, allocations: 143.9 kB / 0.6266 GB, free: 10.62 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02961/1.36, allocations: 6.047 MB / 0.6325 GB, free: 4.492 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/1.36, allocations: 12.03 kB / 0.6325 GB, free: 4.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009961/1.37, allocations: 1.156 MB / 0.6336 GB, free: 3.316 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02187/1.392, allocations: 4.926 MB / 0.6384 GB, free: 14.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007221/1.393, allocations: 427.4 kB / 0.6389 GB, free: 13.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002626/1.395, allocations: 0.5662 MB / 0.6394 GB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02619/1.422, allocations: 7.208 MB / 0.6464 GB, free: 5.938 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002542/1.422, allocations: 19.83 kB / 0.6465 GB, free: 5.918 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00125/1.423, allocations: 240 kB / 0.6467 GB, free: 5.684 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003637/1.424, allocations: 251.2 kB / 0.6469 GB, free: 5.438 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.328/1.752, allocations: 5.85 MB / 0.6526 GB, free: 51.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05898/1.811, allocations: 23.86 MB / 0.676 GB, free: 46.85 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01239/1.823, allocations: 8.791 MB / 0.6845 GB, free: 41.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01807/1.841, allocations: 6.796 MB / 0.6912 GB, free: 39.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.91e-05/1.841, allocations: 65 kB / 0.6912 GB, free: 39.76 MB / 426.7 MB Notification: Performance of pre-optimization done (n=253): time 6.693e-06/1.841, allocations: 2.031 kB / 0.6912 GB, free: 39.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=305): time 0.07275/1.914, allocations: 16.61 MB / 0.7075 GB, free: 37.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/1.914, allocations: 85.78 kB / 0.7075 GB, free: 37.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006696/1.921, allocations: 2.965 MB / 0.7104 GB, free: 36.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006614/1.922, allocations: 77.95 kB / 0.7105 GB, free: 36.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001944/1.924, allocations: 2.455 MB / 0.7129 GB, free: 35.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001453/1.925, allocations: 1.042 MB / 0.7139 GB, free: 35.17 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003988/1.925, allocations: 74.44 kB / 0.714 GB, free: 35.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002358/1.926, allocations: 463.9 kB / 0.7144 GB, free: 34.85 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004656/1.93, allocations: 1.651 MB / 0.7161 GB, free: 34.84 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006011/1.936, allocations: 2.821 MB / 0.7188 GB, free: 33.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006067/1.943, allocations: 2.121 MB / 0.7209 GB, free: 32.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.288e-05/1.943, allocations: 11.31 kB / 0.7209 GB, free: 32.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01624/1.959, allocations: 5.534 MB / 0.7263 GB, free: 30.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.013e-05/1.959, allocations: 24.48 kB / 0.7263 GB, free: 30.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001136/1.959, allocations: 46.95 kB / 0.7264 GB, free: 30.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003534/1.963, allocations: 0.8608 MB / 0.7272 GB, free: 30.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00661/1.969, allocations: 0.9001 MB / 0.7281 GB, free: 30.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01707/1.986, allocations: 10.06 MB / 0.7379 GB, free: 23.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005671/1.992, allocations: 248.8 kB / 0.7381 GB, free: 23.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009654/1.993, allocations: 172.7 kB / 0.7383 GB, free: 23.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * 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 (434): * Single equations (assignments): 425 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005249/1.998, allocations: 1.628 MB / 0.7399 GB, free: 22.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001425/2, allocations: 394.8 kB / 0.7403 GB, free: 22.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01554/2.015, allocations: 4.933 MB / 0.7451 GB, free: 20.08 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.416e-05/2.016, allocations: 36.23 kB / 0.7451 GB, free: 20.08 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.041e-05/2.016, allocations: 11.38 kB / 0.7451 GB, free: 20.08 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-05/2.016, allocations: 14.44 kB / 0.7451 GB, free: 20.08 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03156/2.047, allocations: 10.64 MB / 0.7555 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01179/2.059, allocations: 4.182 MB / 0.7596 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004509/2.064, allocations: 0.5317 MB / 0.7601 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004318/2.068, allocations: 0.986 MB / 0.7611 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005872/2.069, allocations: 76.25 kB / 0.7612 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02208/2.091, allocations: 15.11 MB / 0.7759 GB, free: 2.078 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/2.091, allocations: 6.906 kB / 0.7759 GB, free: 2.078 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02249/2.113, allocations: 7.952 MB / 0.7837 GB, free: 13.36 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003359/2.117, allocations: 0.8047 MB / 0.7845 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001397/2.118, allocations: 71.14 kB / 0.7846 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00495/2.123, allocations: 191 kB / 0.7847 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001188/2.124, allocations: 232.9 kB / 0.785 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004959/2.125, allocations: 87.55 kB / 0.785 GB, free: 12.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007483/2.132, allocations: 2.247 MB / 0.7872 GB, free: 10.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.91e-07/2.132, allocations: 0 / 0.7872 GB, free: 10.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008406/2.141, allocations: 1.212 MB / 0.7884 GB, free: 9.129 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (244): * Single equations (assignments): 235 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001884/2.143, allocations: 0.5127 MB / 0.7889 GB, free: 8.746 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01658/2.159, allocations: 5.049 MB / 0.7939 GB, free: 4.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.464e-05/2.16, allocations: 0 / 0.7939 GB, free: 4.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01051/2.17, allocations: 3.228 MB / 0.797 GB, free: 1.195 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007832/2.178, allocations: 0.8344 MB / 0.7978 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0393/2.217, allocations: 12.82 MB / 0.8103 GB, free: 5.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008313/2.226, allocations: 3.553 MB / 0.8138 GB, free: 2.426 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002175/2.228, allocations: 285.2 kB / 0.8141 GB, free: 2.16 MB / 458.7 MB Notification: Performance of SimCode: time 1.503e-06/2.228, allocations: 0 / 0.8141 GB, free: 2.16 MB / 458.7 MB Notification: Performance of Templates: time 1.128/3.356, allocations: 214.2 MB / 1.023 GB, free: 100.7 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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=2 -DSUNDIALS_MINOR_VERSION=6 -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.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:375:38: error: use of undeclared identifier \'_omcQ_24tmpVar12_\'; did you mean \'_omcQ_24tmpVar13_\'?\n _omcQ_24tmpVar13_ = std::cos(_omcQ_24tmpVar12_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar13_\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:352:12: note: \'_omcQ_24tmpVar13_\' declared here\n double _omcQ_24tmpVar13_;\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:412:38: error: use of undeclared identifier \'_omcQ_24tmpVar15_\'; did you mean \'_omcQ_24tmpVar16_\'?\n _omcQ_24tmpVar16_ = std::sin(_omcQ_24tmpVar15_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar16_\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:389:12: note: \'_omcQ_24tmpVar16_\' declared here\n double _omcQ_24tmpVar16_;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o] Error 1\n'