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_DOL.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_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",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.001368/0.001368, allocations: 179.4 kB / 16.38 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.364/1.364, allocations: 223.2 MB / 240.3 MB, free: 11.91 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.0008875/0.0008875, allocations: 102.8 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002626/0.0002626, allocations: 7.984 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2518, allocations: 50.41 MB / 401.6 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4618/0.7137, allocations: 153.8 MB / 0.5424 GB, free: 46.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/0.7141, allocations: 111.9 kB / 0.5425 GB, free: 46.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.506/2.22, allocations: 457.2 MB / 0.989 GB, free: 396 kB / 458.7 MB Notification: Performance of FrontEnd: time 4.549e-06/2.22, allocations: 0 / 0.989 GB, free: 396 kB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001785/2.222, allocations: 327.6 kB / 0.9893 GB, free: 68 kB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.0614/2.283, allocations: 14 MB / 1.003 GB, free: 1.949 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.053e-05/2.283, allocations: 8.562 kB / 1.003 GB, free: 1.941 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.6451/2.928, allocations: 2.299 MB / 1.005 GB, free: 28.39 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03522/2.963, allocations: 5.858 MB / 1.011 GB, free: 27.95 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02978/2.993, allocations: 11.72 MB / 1.022 GB, free: 27.36 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00167/2.995, allocations: 1.023 MB / 1.023 GB, free: 27.32 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007688/3.003, allocations: 1.352 MB / 1.025 GB, free: 27.31 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05908/3.062, allocations: 22.46 MB / 1.047 GB, free: 25.66 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000797/3.063, allocations: 22.78 kB / 1.047 GB, free: 25.66 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005816/3.069, allocations: 0.5831 MB / 1.047 GB, free: 25.66 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001152/3.07, allocations: 0.977 MB / 1.048 GB, free: 25.63 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04385/3.114, allocations: 19.58 MB / 1.067 GB, free: 25.5 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1363/3.25, allocations: 72.72 MB / 1.138 GB, free: 8.203 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03963/3.29, allocations: 42.34 MB / 1.18 GB, free: 1.426 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03023/3.32, allocations: 12.58 MB / 1.192 GB, free: 7.84 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.33e-05/3.32, allocations: 86.81 kB / 1.192 GB, free: 7.746 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=514): time 5.77e-06/3.32, allocations: 0 / 1.192 GB, free: 7.746 MB / 0.5262 GB Notification: Performance of matching and sorting (n=522): time 0.4561/3.776, allocations: 27.53 MB / 1.219 GB, free: 86.43 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/3.776, allocations: 130.6 kB / 1.219 GB, free: 86.33 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01077/3.787, allocations: 5.056 MB / 1.224 GB, free: 85.92 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001565/3.789, allocations: 109.6 kB / 1.224 GB, free: 85.89 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.005205/3.794, allocations: 6.115 MB / 1.23 GB, free: 82.69 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003014/3.797, allocations: 1.782 MB / 1.232 GB, free: 81.57 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009684/3.798, allocations: 151.2 kB / 1.232 GB, free: 81.57 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0005195/3.798, allocations: 0.6108 MB / 1.233 GB, free: 81.26 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006029/3.805, allocations: 3.665 MB / 1.236 GB, free: 81.24 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009808/3.814, allocations: 6.44 MB / 1.242 GB, free: 77.9 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008887/3.823, allocations: 5.044 MB / 1.247 GB, free: 77.83 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001323/3.823, allocations: 27.22 kB / 1.247 GB, free: 77.83 MB / 0.5262 GB Notification: Performance of matching and sorting (n=970) (initialization): time 0.02574/3.849, allocations: 12.1 MB / 1.259 GB, free: 77.18 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001315/3.849, allocations: 43.5 kB / 1.259 GB, free: 77.18 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002373/3.85, allocations: 96.56 kB / 1.259 GB, free: 77.18 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004838/3.854, allocations: 1.508 MB / 1.261 GB, free: 77.12 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007461/3.862, allocations: 1.662 MB / 1.262 GB, free: 77.12 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02321/3.885, allocations: 18.34 MB / 1.28 GB, free: 70.39 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00838/3.894, allocations: 432.7 kB / 1.281 GB, free: 70.36 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00211/3.896, allocations: 367.2 kB / 1.281 GB, free: 70.36 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 415 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 860 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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: 5 {(1,100.0%) 1,(12,52.8%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0129/3.909, allocations: 5.19 MB / 1.286 GB, free: 70.19 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001934/3.911, allocations: 0.5957 MB / 1.287 GB, free: 69.88 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01831/3.929, allocations: 9.479 MB / 1.296 GB, free: 69.23 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009444/3.938, allocations: 5.9 MB / 1.302 GB, free: 67.76 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-05/3.938, allocations: 17.66 kB / 1.302 GB, free: 67.76 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.208e-05/3.939, allocations: 25.12 kB / 1.302 GB, free: 67.76 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04072/3.979, allocations: 21.29 MB / 1.323 GB, free: 59.05 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/3.979, allocations: 6.062 kB / 1.323 GB, free: 59.05 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003545/3.983, allocations: 0.8849 MB / 1.323 GB, free: 59.02 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004122/3.987, allocations: 1.546 MB / 1.325 GB, free: 58.61 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004035/3.987, allocations: 133.7 kB / 1.325 GB, free: 58.53 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02123/4.009, allocations: 21.57 MB / 1.346 GB, free: 43.31 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/4.009, allocations: 7.5 kB / 1.346 GB, free: 43.31 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02143/4.03, allocations: 14.78 MB / 1.361 GB, free: 30.74 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004923/4.035, allocations: 1.376 MB / 1.362 GB, free: 29.49 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001717/4.037, allocations: 106.7 kB / 1.362 GB, free: 29.39 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003393/4.04, allocations: 308.8 kB / 1.362 GB, free: 29.17 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009458/4.041, allocations: 413.8 kB / 1.363 GB, free: 28.91 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003364/4.042, allocations: 153.3 kB / 1.363 GB, free: 28.77 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.006126/4.048, allocations: 3.803 MB / 1.367 GB, free: 25.64 MB / 0.5262 GB Notification: Performance of sort global known variables: time 4.51e-07/4.048, allocations: 3.391 kB / 1.367 GB, free: 25.64 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01242/4.06, allocations: 2.387 MB / 1.369 GB, free: 23.27 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,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,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,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 simulation (451): * Single equations (assignments): 440 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(12,54.9%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02148/4.082, allocations: 17.06 MB / 1.386 GB, free: 7.816 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.3801/4.462, allocations: 10.3 MB / 1.396 GB, free: 91.21 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.477e-05/4.462, allocations: 5.094 kB / 1.396 GB, free: 91.21 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0102/4.472, allocations: 5.487 MB / 1.401 GB, free: 90.32 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009541/4.482, allocations: 1.49 MB / 1.402 GB, free: 90.3 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1948/4.677, allocations: 137.1 MB / 1.536 GB, free: 12.95 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02501/4.702, allocations: 9.098 MB / 1.545 GB, free: 11.79 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.01353/4.715, allocations: 2.524 MB / 1.548 GB, free: 11.56 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01276/4.728, allocations: 5.145 MB / 1.553 GB, free: 11.56 MB / 0.5418 GB Notification: Performance of SimCode: time 1.183e-06/4.728, allocations: 0 / 1.553 GB, free: 11.56 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6839/5.412, allocations: 186.1 MB / 1.734 GB, free: 56.98 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001884/5.412, allocations: 249.1 kB / 1.735 GB, free: 56.64 MB / 0.5418 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_DOL.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_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_DOL.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_functions.h:1249: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); ^ ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_functions.h:1258:1: error: unknown type name '_omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower' _omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower omc__omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 2 errors generated. make: *** [: Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.o] Error 1