Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009384/0.0009385, allocations: 82.78 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002738/0.0002738, allocations: 12 kB / 352.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2633, allocations: 50.41 MB / 402.9 MB, free: 32.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4587/0.722, allocations: 153.3 MB / 0.5432 GB, free: 46.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.7223, allocations: 103.3 kB / 0.5433 GB, free: 46.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.911/2.634, allocations: 0.4894 GB / 1.033 GB, free: 31.14 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.775e-06/2.634, allocations: 0 / 1.033 GB, free: 31.14 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.00254/2.636, allocations: 357.8 kB / 1.033 GB, free: 31.1 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4252 * Number of variables: 4252 Notification: Performance of Generate backend data structure: time 0.06307/2.699, allocations: 15.7 MB / 1.048 GB, free: 25.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/2.699, allocations: 7.312 kB / 1.048 GB, free: 25.97 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01285/2.712, allocations: 2.194 MB / 1.051 GB, free: 25.83 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04504/2.757, allocations: 7.411 MB / 1.058 GB, free: 24.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03912/2.796, allocations: 12.56 MB / 1.07 GB, free: 23.51 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00195/2.798, allocations: 1.121 MB / 1.071 GB, free: 23.48 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008422/2.807, allocations: 1.465 MB / 1.073 GB, free: 23.47 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07472/2.882, allocations: 25.17 MB / 1.097 GB, free: 21.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001011/2.883, allocations: 21.09 kB / 1.097 GB, free: 21.65 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007011/2.89, allocations: 0.6293 MB / 1.098 GB, free: 21.65 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001625/2.891, allocations: 1.093 MB / 1.099 GB, free: 21.61 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05699/2.948, allocations: 22.88 MB / 1.121 GB, free: 21.15 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1786/3.127, allocations: 80.76 MB / 1.2 GB, free: 1.219 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4499/3.577, allocations: 39.1 MB / 1.238 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04847/3.625, allocations: 16.75 MB / 1.255 GB, free: 32.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0121/3.638, allocations: 5.359 MB / 1.26 GB, free: 32.49 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=727): time 1.941e-05/3.638, allocations: 3.844 kB / 1.26 GB, free: 32.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=735): time 0.118/3.756, allocations: 41.52 MB / 1.3 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001903/3.756, allocations: 475.5 kB / 1.301 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01162/3.767, allocations: 5.632 MB / 1.306 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001861/3.769, allocations: 154.9 kB / 1.306 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00736/3.777, allocations: 6.478 MB / 1.313 GB, free: 22.93 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003879/3.781, allocations: 2.443 MB / 1.315 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001299/3.782, allocations: 183.2 kB / 1.315 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007634/3.783, allocations: 0.6707 MB / 1.316 GB, free: 21.07 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008694/3.791, allocations: 4.811 MB / 1.321 GB, free: 21.04 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0119/3.803, allocations: 7.671 MB / 1.328 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01271/3.816, allocations: 6.274 MB / 1.334 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001572/3.816, allocations: 24.69 kB / 1.334 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1162) (initialization): time 0.03159/3.848, allocations: 15.57 MB / 1.35 GB, free: 9.043 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001407/3.848, allocations: 43.53 kB / 1.35 GB, free: 9.039 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002113/3.848, allocations: 84.03 kB / 1.35 GB, free: 9.039 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008143/3.857, allocations: 2.908 MB / 1.353 GB, free: 8.238 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00992/3.867, allocations: 1.815 MB / 1.354 GB, free: 8.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04525/3.912, allocations: 31.82 MB / 1.385 GB, free: 1.316 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009596/3.921, allocations: 0.5843 MB / 1.386 GB, free: 0.8555 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002623/3.924, allocations: 411.4 kB / 1.386 GB, free: 484 kB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 388 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],$PRE.switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[1].tSwitch,$PRE.switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[2].tSwitch,$PRE.switchYDQS.logicalDelay[3].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (974): * Single equations (assignments): 967 * 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: 6 * 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: 6 {(1,100.0%) 1,(24,31.2%) 108,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.478/4.402, allocations: 7.296 MB / 1.393 GB, free: 68.75 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002805/4.405, allocations: 0.7117 MB / 1.394 GB, free: 68.75 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02881/4.434, allocations: 13.49 MB / 1.407 GB, free: 68.12 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.281e-05/4.434, allocations: 72 kB / 1.407 GB, free: 68.12 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-05/4.434, allocations: 35.69 kB / 1.407 GB, free: 68.12 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002025/4.434, allocations: 39.84 kB / 1.407 GB, free: 68.12 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08508/4.519, allocations: 27.97 MB / 1.435 GB, free: 66.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.058e-05/4.519, allocations: 6.875 kB / 1.435 GB, free: 66.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005853/4.525, allocations: 1.082 MB / 1.436 GB, free: 66.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008084/4.533, allocations: 2.957 MB / 1.439 GB, free: 66.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001787/4.535, allocations: 166.6 kB / 1.439 GB, free: 66.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04414/4.579, allocations: 34.35 MB / 1.472 GB, free: 55.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.768e-06/4.579, allocations: 10.72 kB / 1.472 GB, free: 55.88 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04118/4.621, allocations: 20.6 MB / 1.493 GB, free: 50.89 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008079/4.629, allocations: 1.816 MB / 1.494 GB, free: 50.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004024/4.633, allocations: 148.8 kB / 1.495 GB, free: 50.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007295/4.64, allocations: 449.7 kB / 1.495 GB, free: 49.93 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004124/4.644, allocations: 0.6466 MB / 1.496 GB, free: 49.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00239/4.647, allocations: 212.4 kB / 1.496 GB, free: 49.77 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0112/4.658, allocations: 4.26 MB / 1.5 GB, free: 48.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.7e-07/4.658, allocations: 6.312 kB / 1.5 GB, free: 48.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01816/4.676, allocations: 2.933 MB / 1.503 GB, free: 47.89 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 42 (booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (586): * Single equations (assignments): 572 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,31.8%) 108,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04445/4.721, allocations: 22.87 MB / 1.525 GB, free: 36.52 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02668/4.747, allocations: 13.45 MB / 1.538 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.859e-05/4.747, allocations: 0 / 1.538 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01817/4.766, allocations: 8.448 MB / 1.547 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01203/4.778, allocations: 1.754 MB / 1.548 GB, free: 21.97 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6246/5.402, allocations: 149.2 MB / 1.694 GB, free: 22.13 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02657/5.429, allocations: 10.14 MB / 1.704 GB, free: 21.08 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01447/5.443, allocations: 2.977 MB / 1.707 GB, free: 20.88 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01629/5.46, allocations: 5.69 MB / 1.712 GB, free: 20.88 MB / 0.573 GB Notification: Performance of SimCode: time 1.343e-06/5.46, allocations: 4 kB / 1.712 GB, free: 20.88 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7788/6.239, allocations: 228.6 MB / 1.935 GB, free: 83.09 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000249/6.239, allocations: 257.4 kB / 1.936 GB, free: 82.75 MB / 0.573 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_functions.h:1207:1: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 1 error generated. make: *** [: Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.o] Error 1