Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001345/0.001345, allocations: 202.8 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.2 MB / 245 MB, free: 5.801 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008836/0.0008835, allocations: 106.8 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000224/0.000224, allocations: 4 kB / 359.4 MB, free: 7.859 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2306, allocations: 51.49 MB / 410.9 MB, free: 26.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3978/0.6285, allocations: 154.2 MB / 0.5519 GB, free: 36.99 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000403/0.629, allocations: 114.6 kB / 0.552 GB, free: 36.97 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.748/2.377, allocations: 0.5121 GB / 1.064 GB, free: 27.68 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.294e-06/2.378, allocations: 0 / 1.064 GB, free: 27.68 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001044/2.379, allocations: 348.1 kB / 1.064 GB, free: 27.65 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.06308/2.442, allocations: 15.77 MB / 1.08 GB, free: 22.48 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/2.442, allocations: 13.53 kB / 1.08 GB, free: 22.48 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01126/2.453, allocations: 2.184 MB / 1.082 GB, free: 22.34 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04095/2.494, allocations: 7.446 MB / 1.089 GB, free: 21.46 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03582/2.53, allocations: 12.58 MB / 1.101 GB, free: 20.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001336/2.531, allocations: 1.118 MB / 1.103 GB, free: 19.98 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008177/2.539, allocations: 1.463 MB / 1.104 GB, free: 19.98 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06841/2.608, allocations: 25.17 MB / 1.129 GB, free: 18.16 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008639/2.609, allocations: 24.48 kB / 1.129 GB, free: 18.15 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006504/2.615, allocations: 0.6338 MB / 1.129 GB, free: 18.15 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001332/2.617, allocations: 1.091 MB / 1.13 GB, free: 18.12 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05293/2.67, allocations: 22.87 MB / 1.153 GB, free: 14.38 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5234/3.193, allocations: 81.38 MB / 1.232 GB, free: 38.71 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0313/3.224, allocations: 39.1 MB / 1.27 GB, free: 28.06 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03412/3.259, allocations: 17 MB / 1.287 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007747/3.266, allocations: 5.358 MB / 1.292 GB, free: 26.67 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=727): time 8.205e-06/3.266, allocations: 0 / 1.292 GB, free: 26.67 MB / 0.5261 GB Notification: Performance of matching and sorting (n=735): time 0.1007/3.367, allocations: 41.54 MB / 1.333 GB, free: 20.92 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002869/3.367, allocations: 474 kB / 1.333 GB, free: 20.44 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009502/3.377, allocations: 5.646 MB / 1.339 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001491/3.378, allocations: 152.1 kB / 1.339 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005978/3.384, allocations: 6.494 MB / 1.345 GB, free: 16.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002951/3.387, allocations: 2.445 MB / 1.348 GB, free: 15.16 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006244/3.388, allocations: 185.2 kB / 1.348 GB, free: 15.16 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004716/3.389, allocations: 0.6743 MB / 1.348 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007086/3.396, allocations: 4.814 MB / 1.353 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008291/3.404, allocations: 7.665 MB / 1.361 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008482/3.412, allocations: 6.274 MB / 1.367 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.334e-05/3.413, allocations: 23.28 kB / 1.367 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1162) (initialization): time 0.02539/3.438, allocations: 15.56 MB / 1.382 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/3.438, allocations: 41.5 kB / 1.382 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000159/3.438, allocations: 83.44 kB / 1.382 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007242/3.445, allocations: 2.914 MB / 1.385 GB, free: 8.227 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007871/3.453, allocations: 1.827 MB / 1.387 GB, free: 8.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4328/3.886, allocations: 31.87 MB / 1.418 GB, free: 75.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008843/3.895, allocations: 0.5826 MB / 1.418 GB, free: 75.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00255/3.898, allocations: 407.4 kB / 1.419 GB, free: 75.41 MB / 0.5417 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.01569/3.913, allocations: 5.874 MB / 1.424 GB, free: 75.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002853/3.916, allocations: 0.7067 MB / 1.425 GB, free: 75.29 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02567/3.942, allocations: 13.5 MB / 1.438 GB, free: 74.64 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.928e-05/3.942, allocations: 75.41 kB / 1.438 GB, free: 74.64 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001249/3.942, allocations: 30.56 kB / 1.438 GB, free: 74.64 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001686/3.942, allocations: 41.67 kB / 1.438 GB, free: 74.64 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07073/4.013, allocations: 27.97 MB / 1.466 GB, free: 73.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-05/4.013, allocations: 8.547 kB / 1.466 GB, free: 73.06 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005354/4.019, allocations: 1.087 MB / 1.467 GB, free: 73.06 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007343/4.026, allocations: 2.96 MB / 1.47 GB, free: 72.98 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001444/4.027, allocations: 162 kB / 1.47 GB, free: 72.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03835/4.066, allocations: 34.34 MB / 1.503 GB, free: 62.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.802e-06/4.066, allocations: 10.12 kB / 1.503 GB, free: 62.38 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03168/4.097, allocations: 20.62 MB / 1.524 GB, free: 54.24 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007996/4.106, allocations: 1.819 MB / 1.525 GB, free: 53.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004104/4.11, allocations: 143.5 kB / 1.525 GB, free: 53.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007059/4.117, allocations: 453.2 kB / 1.526 GB, free: 53.03 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002397/4.119, allocations: 0.6486 MB / 1.527 GB, free: 52.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001279/4.12, allocations: 209.6 kB / 1.527 GB, free: 52.88 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.009916/4.13, allocations: 4.272 MB / 1.531 GB, free: 51.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.7e-07/4.13, allocations: 0 / 1.531 GB, free: 51.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01917/4.15, allocations: 2.945 MB / 1.534 GB, free: 50.99 MB / 0.5417 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.04245/4.192, allocations: 22.9 MB / 1.556 GB, free: 39.61 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02646/4.219, allocations: 13.45 MB / 1.569 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.777e-05/4.219, allocations: 0 / 1.569 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01686/4.236, allocations: 8.447 MB / 1.578 GB, free: 24.69 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01162/4.247, allocations: 1.768 MB / 1.579 GB, free: 23.38 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5504/4.798, allocations: 148.8 MB / 1.725 GB, free: 19.48 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02226/4.82, allocations: 10.15 MB / 1.735 GB, free: 18.43 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01043/4.83, allocations: 2.977 MB / 1.737 GB, free: 18.17 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01233/4.843, allocations: 5.65 MB / 1.743 GB, free: 18.16 MB / 0.573 GB Notification: Performance of SimCode: time 3.317e-06/4.843, allocations: 4 kB / 1.743 GB, free: 18.16 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6353/5.478, allocations: 229.1 MB / 1.967 GB, free: 74.49 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/5.478, allocations: 247 kB / 1.967 GB, free: 74.16 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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.c:7: In file included from ./Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_functions.h:1208: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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.o] Error 1