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.001567/0.001567, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.993/1.993, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001198/0.001198, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.237e-05/3.266e-05, allocations: 4 kB / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09975/0.0998, allocations: 47.58 MB / 369.1 MB, free: 2.172 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5326/0.6325, allocations: 162 MB / 0.5187 GB, free: 12.49 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003775/0.633, allocations: 108.7 kB / 0.5188 GB, free: 12.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.1/3.733, allocations: 0.5707 GB / 1.09 GB, free: 40.08 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.495e-06/3.733, allocations: 0 / 1.09 GB, free: 40.08 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001693/3.734, allocations: 424.7 kB / 1.09 GB, free: 40.01 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.08826/3.823, allocations: 17 MB / 1.107 GB, free: 34.91 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/3.823, allocations: 9.5 kB / 1.107 GB, free: 34.91 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07257/3.895, allocations: 8.473 MB / 1.115 GB, free: 33.88 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05773/3.953, allocations: 14.54 MB / 1.129 GB, free: 32.14 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002549/3.956, allocations: 1.344 MB / 1.13 GB, free: 32.1 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01008/3.966, allocations: 1.742 MB / 1.132 GB, free: 32.09 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.11/4.076, allocations: 30.35 MB / 1.162 GB, free: 18.26 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001268/4.077, allocations: 26.34 kB / 1.162 GB, free: 18.24 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01063/4.088, allocations: 0.7522 MB / 1.162 GB, free: 17.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001971/4.09, allocations: 1.19 MB / 1.164 GB, free: 16.43 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1173/4.207, allocations: 28.43 MB / 1.191 GB, free: 11.18 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7215/4.929, allocations: 97.91 MB / 1.287 GB, free: 33.93 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05489/4.984, allocations: 35.32 MB / 1.321 GB, free: 9.797 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03162/5.015, allocations: 12.78 MB / 1.334 GB, free: 4.348 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1213/5.137, allocations: 39.29 MB / 1.372 GB, free: 1.492 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/5.137, allocations: 149.8 kB / 1.372 GB, free: 1.375 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1269): time 1.861e-05/5.137, allocations: 0 / 1.372 GB, free: 1.375 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1277): time 0.6177/5.755, allocations: 47.72 MB / 1.419 GB, free: 80.69 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001899/5.755, allocations: 189.1 kB / 1.419 GB, free: 80.59 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01629/5.771, allocations: 4.978 MB / 1.424 GB, free: 80.14 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.003084/5.774, allocations: 202 kB / 1.424 GB, free: 80.11 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005781/5.78, allocations: 6.277 MB / 1.43 GB, free: 76.78 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.007118/5.787, allocations: 4.187 MB / 1.434 GB, free: 74.06 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003388/5.791, allocations: 214.8 kB / 1.435 GB, free: 74.06 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001657/5.793, allocations: 0.8077 MB / 1.435 GB, free: 73.72 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02249/5.815, allocations: 8.153 MB / 1.443 GB, free: 73.69 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02489/5.84, allocations: 10.3 MB / 1.453 GB, free: 71.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02629/5.866, allocations: 9.778 MB / 1.463 GB, free: 71.41 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001439/5.867, allocations: 14.66 kB / 1.463 GB, free: 71.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1564) (initialization): time 0.07391/5.941, allocations: 24.53 MB / 1.487 GB, free: 65.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.689e-05/5.941, allocations: 29.12 kB / 1.487 GB, free: 65.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/5.941, allocations: 55.94 kB / 1.487 GB, free: 65.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03038/5.971, allocations: 8.953 MB / 1.496 GB, free: 62.94 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01541/5.987, allocations: 1.865 MB / 1.498 GB, free: 62.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05303/6.04, allocations: 30.39 MB / 1.527 GB, free: 42.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.014/6.054, allocations: 0.5534 MB / 1.528 GB, free: 42.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003937/6.058, allocations: 466.6 kB / 1.528 GB, free: 42.62 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 248 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 918 * 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.007332/6.065, allocations: 0.6759 MB / 1.529 GB, free: 42.17 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005418/6.071, allocations: 0.8505 MB / 1.53 GB, free: 41.71 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07857/6.149, allocations: 25.33 MB / 1.555 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05537/6.205, allocations: 20.06 MB / 1.574 GB, free: 7.512 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.618e-05/6.205, allocations: 8 kB / 1.574 GB, free: 7.504 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002638/6.205, allocations: 60.53 kB / 1.574 GB, free: 7.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.597/6.802, allocations: 48.42 MB / 1.621 GB, free: 95.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002131/6.802, allocations: 2.906 kB / 1.621 GB, free: 95.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01233/6.815, allocations: 1.348 MB / 1.623 GB, free: 95.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03095/6.846, allocations: 9.054 MB / 1.632 GB, free: 94.79 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003575/6.849, allocations: 271.4 kB / 1.632 GB, free: 94.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06035/6.91, allocations: 36.51 MB / 1.668 GB, free: 79.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/6.91, allocations: 5.906 kB / 1.668 GB, free: 79.26 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09996/7.01, allocations: 37.7 MB / 1.704 GB, free: 63.66 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01199/7.022, allocations: 2.811 MB / 1.707 GB, free: 62.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005564/7.027, allocations: 186.8 kB / 1.707 GB, free: 62.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01325/7.041, allocations: 0.5096 MB / 1.708 GB, free: 62.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0059/7.047, allocations: 0.9689 MB / 1.709 GB, free: 62.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003372/7.05, allocations: 344.7 kB / 1.709 GB, free: 62.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0105/7.061, allocations: 3.781 MB / 1.713 GB, free: 60.58 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.444e-06/7.061, allocations: 0 / 1.713 GB, free: 60.58 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02068/7.081, allocations: 3.248 MB / 1.716 GB, free: 58.75 MB / 0.5261 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (716): * Single equations (assignments): 650 * 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%) 8,(1,100.0%) 1,(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.004623/7.086, allocations: 0.8769 MB / 1.717 GB, free: 58.12 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.05824/7.144, allocations: 21.08 MB / 1.737 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/7.144, allocations: 4 kB / 1.737 GB, free: 39.24 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.03583/7.18, allocations: 12.17 MB / 1.749 GB, free: 28.36 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01891/7.199, allocations: 1.973 MB / 1.751 GB, free: 26.88 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6136/7.813, allocations: 33.65 MB / 1.784 GB, free: 85.33 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03434/7.847, allocations: 11.57 MB / 1.795 GB, free: 84.28 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006858/7.854, allocations: 0.6288 MB / 1.796 GB, free: 84.28 MB / 0.5261 GB Notification: Performance of SimCode: time 2.495e-06/7.854, allocations: 2.438 kB / 1.796 GB, free: 84.28 MB / 0.5261 GB Notification: Performance of Templates: time 6.677/14.53, allocations: 1.762 GB / 3.558 GB, free: 92.3 MB / 0.5886 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'