Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|Itr|Iqs|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imsQS.rotor.electroMagneticConverter.port_p.reference.gamma|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|Itr|Iqs|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imsQS.rotor.electroMagneticConverter.port_p.reference.gamma|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003045/0.003045, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.99/1.99, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001164/0.001163, allocations: 100.3 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005654/0.0005657, allocations: 8 kB / 327 MB, free: 172 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3428, allocations: 47.56 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6278/0.9707, allocations: 162.1 MB / 0.5241 GB, free: 65.15 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003573/0.9711, allocations: 107.5 kB / 0.5242 GB, free: 65.13 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.702/3.673, allocations: 0.5711 GB / 1.095 GB, free: 32.18 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.316e-06/3.673, allocations: 0 / 1.095 GB, free: 32.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.00161/3.675, allocations: 429.6 kB / 1.096 GB, free: 32.11 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.09004/3.765, allocations: 18.04 MB / 1.113 GB, free: 26.45 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/3.765, allocations: 8.219 kB / 1.113 GB, free: 26.45 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07051/3.835, allocations: 8.518 MB / 1.122 GB, free: 25.43 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05044/3.886, allocations: 14.59 MB / 1.136 GB, free: 22.13 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002292/3.888, allocations: 1.347 MB / 1.137 GB, free: 21.25 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009553/3.898, allocations: 1.745 MB / 1.139 GB, free: 19.52 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.917/4.815, allocations: 30.92 MB / 1.169 GB, free: 26.87 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00122/4.816, allocations: 26.09 kB / 1.169 GB, free: 26.87 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008847/4.825, allocations: 0.7565 MB / 1.17 GB, free: 26.87 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001999/4.827, allocations: 1.187 MB / 1.171 GB, free: 26.83 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08784/4.915, allocations: 27.66 MB / 1.198 GB, free: 26.66 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2666/5.181, allocations: 98.1 MB / 1.294 GB, free: 7.062 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06267/5.244, allocations: 35.55 MB / 1.329 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6103/5.854, allocations: 40.5 MB / 1.368 GB, free: 77.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000176/5.855, allocations: 153.3 kB / 1.368 GB, free: 77.14 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1283): time 1.968e-05/5.855, allocations: 0 / 1.368 GB, free: 77.14 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1291): time 0.5834/6.438, allocations: 106 MB / 1.472 GB, free: 64.21 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/6.438, allocations: 199.3 kB / 1.472 GB, free: 64.11 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01317/6.452, allocations: 5.018 MB / 1.477 GB, free: 63.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.003015/6.455, allocations: 202 kB / 1.477 GB, free: 63.66 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005004/6.46, allocations: 6.258 MB / 1.483 GB, free: 59.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.007155/6.467, allocations: 4.234 MB / 1.487 GB, free: 56.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003169/6.47, allocations: 215.3 kB / 1.488 GB, free: 56.33 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001511/6.472, allocations: 0.8082 MB / 1.488 GB, free: 55.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02289/6.495, allocations: 8.354 MB / 1.496 GB, free: 51.29 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02516/6.52, allocations: 10.47 MB / 1.507 GB, free: 41.45 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02645/6.546, allocations: 9.951 MB / 1.516 GB, free: 32.61 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.297e-05/6.546, allocations: 16 kB / 1.516 GB, free: 32.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1574) (initialization): time 0.0701/6.617, allocations: 24.98 MB / 1.541 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001828/6.617, allocations: 43.05 kB / 1.541 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003788/6.617, allocations: 80.95 kB / 1.541 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4682/7.085, allocations: 9.045 MB / 1.55 GB, free: 78.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01509/7.101, allocations: 1.881 MB / 1.552 GB, free: 78.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05283/7.153, allocations: 30.64 MB / 1.582 GB, free: 67.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01321/7.167, allocations: 0.5636 MB / 1.582 GB, free: 67.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003737/7.17, allocations: 464 kB / 1.583 GB, free: 67.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 244 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (992): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * 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: 7 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.02195/7.192, allocations: 6.755 MB / 1.589 GB, free: 67.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005227/7.198, allocations: 0.852 MB / 1.59 GB, free: 67.11 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08141/7.279, allocations: 25.72 MB / 1.615 GB, free: 66.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.06017/7.339, allocations: 20.29 MB / 1.635 GB, free: 58.85 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.621e-05/7.34, allocations: 7.219 kB / 1.635 GB, free: 58.85 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003/7.34, allocations: 59.38 kB / 1.635 GB, free: 58.85 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1426/7.482, allocations: 48.95 MB / 1.683 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002227/7.483, allocations: 7.469 kB / 1.683 GB, free: 32.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01243/7.495, allocations: 1.377 MB / 1.684 GB, free: 31.37 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03161/7.527, allocations: 9.129 MB / 1.693 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003502/7.53, allocations: 277.6 kB / 1.693 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07133/7.602, allocations: 37.17 MB / 1.73 GB, free: 5.629 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/7.602, allocations: 6.938 kB / 1.73 GB, free: 5.625 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5661/8.168, allocations: 39.44 MB / 1.768 GB, free: 86.88 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01092/8.179, allocations: 2.823 MB / 1.771 GB, free: 86.79 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005085/8.184, allocations: 192.7 kB / 1.771 GB, free: 86.79 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01211/8.196, allocations: 0.5099 MB / 1.772 GB, free: 86.79 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005343/8.202, allocations: 0.9774 MB / 1.773 GB, free: 86.78 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003407/8.205, allocations: 341.1 kB / 1.773 GB, free: 86.78 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01083/8.216, allocations: 3.835 MB / 1.777 GB, free: 86.56 MB / 0.5262 GB Notification: Performance of sort global known variables: time 9.62e-07/8.216, allocations: 0 / 1.777 GB, free: 86.56 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.02027/8.236, allocations: 3.254 MB / 1.78 GB, free: 86.56 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (730): * Single equations (assignments): 664 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.004597/8.241, allocations: 0.7554 MB / 1.781 GB, free: 86.46 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.06292/8.304, allocations: 21.52 MB / 1.802 GB, free: 85.16 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/8.304, allocations: 3.031 kB / 1.802 GB, free: 85.16 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.03716/8.341, allocations: 12.43 MB / 1.814 GB, free: 83.81 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01869/8.36, allocations: 1.965 MB / 1.816 GB, free: 83.79 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1234/8.483, allocations: 45.65 MB / 1.86 GB, free: 60.39 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0269/8.51, allocations: 11.57 MB / 1.871 GB, free: 52.21 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005647/8.516, allocations: 0.6353 MB / 1.872 GB, free: 51.61 MB / 0.5262 GB Notification: Performance of SimCode: time 1.754e-06/8.516, allocations: 0 / 1.872 GB, free: 51.61 MB / 0.5262 GB Notification: Performance of Templates: time 6.865/15.38, allocations: 1.763 GB / 3.635 GB, free: 94.26 MB / 0.573 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartFunctions.cpp:588:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp405 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartFunctions.cpp:588:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp405 = 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.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.o] Error 1\n'