Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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_DOL,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001162/0.001162, allocations: 197.8 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.2 MB / 245 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00093/0.00093, allocations: 104.3 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002292/0.0002292, allocations: 8 kB / 358 MB, free: 9.199 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2189, allocations: 51.5 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4033/0.6223, allocations: 154.8 MB / 0.5511 GB, free: 36.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.6225, allocations: 101.1 kB / 0.5512 GB, free: 36.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.359/1.981, allocations: 478.9 MB / 1.019 GB, free: 4.551 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.856e-06/1.981, allocations: 0 / 1.019 GB, free: 4.551 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001539/1.983, allocations: 327.6 kB / 1.019 GB, free: 4.23 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: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.05437/2.037, allocations: 14.06 MB / 1.033 GB, free: 6.047 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/2.038, allocations: 8.031 kB / 1.033 GB, free: 6.039 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01218/2.05, allocations: 2.304 MB / 1.035 GB, free: 3.719 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3623/2.412, allocations: 5.882 MB / 1.041 GB, free: 32.14 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03065/2.443, allocations: 11.74 MB / 1.052 GB, free: 31.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001254/2.444, allocations: 1.023 MB / 1.053 GB, free: 31.67 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00616/2.45, allocations: 1.36 MB / 1.055 GB, free: 31.66 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05903/2.509, allocations: 22.46 MB / 1.077 GB, free: 30.01 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001195/2.511, allocations: 20.12 kB / 1.077 GB, free: 30 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007756/2.518, allocations: 0.579 MB / 1.077 GB, free: 30 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001371/2.52, allocations: 0.9748 MB / 1.078 GB, free: 29.97 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04577/2.566, allocations: 19.58 MB / 1.097 GB, free: 29.84 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1249/2.691, allocations: 73.39 MB / 1.169 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03423/2.725, allocations: 42.59 MB / 1.211 GB, free: 6.594 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0269/2.752, allocations: 12.73 MB / 1.223 GB, free: 388 kB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.7e-05/2.752, allocations: 90.12 kB / 1.223 GB, free: 308 kB / 0.5261 GB Notification: Performance of pre-optimization done (n=514): time 6.151e-06/2.752, allocations: 0 / 1.223 GB, free: 308 kB / 0.5261 GB Notification: Performance of matching and sorting (n=522): time 0.412/3.164, allocations: 27.69 MB / 1.25 GB, free: 91.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/3.164, allocations: 130.5 kB / 1.25 GB, free: 91.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009174/3.173, allocations: 5.066 MB / 1.255 GB, free: 91.22 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001025/3.174, allocations: 112.2 kB / 1.255 GB, free: 91.19 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.003867/3.178, allocations: 6.129 MB / 1.261 GB, free: 88.56 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002311/3.18, allocations: 1.781 MB / 1.263 GB, free: 87.45 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004945/3.181, allocations: 148.2 kB / 1.263 GB, free: 87.45 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003955/3.181, allocations: 0.6061 MB / 1.264 GB, free: 87.13 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005195/3.186, allocations: 3.665 MB / 1.267 GB, free: 87.11 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006165/3.193, allocations: 6.441 MB / 1.274 GB, free: 83.77 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006497/3.199, allocations: 5.048 MB / 1.279 GB, free: 83.71 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.175e-05/3.199, allocations: 25.31 kB / 1.279 GB, free: 83.71 MB / 0.5417 GB Notification: Performance of matching and sorting (n=970) (initialization): time 0.01855/3.218, allocations: 12.11 MB / 1.29 GB, free: 83.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.08e-05/3.218, allocations: 46.62 kB / 1.29 GB, free: 83.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001872/3.218, allocations: 97.38 kB / 1.291 GB, free: 83.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004193/3.222, allocations: 1.504 MB / 1.292 GB, free: 83 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006658/3.229, allocations: 1.676 MB / 1.294 GB, free: 83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0204/3.249, allocations: 18.32 MB / 1.312 GB, free: 76.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007277/3.257, allocations: 431.5 kB / 1.312 GB, free: 76.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001363/3.258, allocations: 367.8 kB / 1.312 GB, free: 76.25 MB / 0.5417 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.01088/3.269, allocations: 5.192 MB / 1.317 GB, free: 76.07 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00176/3.271, allocations: 0.5964 MB / 1.318 GB, free: 75.76 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01539/3.286, allocations: 9.481 MB / 1.327 GB, free: 75.14 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008708/3.295, allocations: 5.903 MB / 1.333 GB, free: 74.95 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.142e-05/3.295, allocations: 21.56 kB / 1.333 GB, free: 74.95 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-05/3.295, allocations: 27.11 kB / 1.333 GB, free: 74.95 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.039/3.334, allocations: 21.29 MB / 1.354 GB, free: 69.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.253e-05/3.334, allocations: 6.594 kB / 1.354 GB, free: 69.31 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003772/3.338, allocations: 0.8906 MB / 1.355 GB, free: 69.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004258/3.342, allocations: 1.546 MB / 1.356 GB, free: 68.86 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008158/3.343, allocations: 127 kB / 1.356 GB, free: 68.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02001/3.363, allocations: 21.58 MB / 1.377 GB, free: 53.56 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/3.363, allocations: 7.562 kB / 1.377 GB, free: 53.56 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02056/3.384, allocations: 14.77 MB / 1.392 GB, free: 46.12 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004906/3.389, allocations: 1.378 MB / 1.393 GB, free: 45.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002176/3.391, allocations: 106.9 kB / 1.393 GB, free: 45.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005224/3.396, allocations: 306.4 kB / 1.394 GB, free: 45.15 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0014/3.397, allocations: 417.5 kB / 1.394 GB, free: 45.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007358/3.398, allocations: 163.2 kB / 1.394 GB, free: 45.05 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.007756/3.406, allocations: 3.807 MB / 1.398 GB, free: 43.66 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.9e-07/3.406, allocations: 0 / 1.398 GB, free: 43.66 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01265/3.419, allocations: 2.4 MB / 1.4 GB, free: 41.61 MB / 0.5417 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%) 1,(1,100.0%) 8,(1,100.0%) 13,(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.02614/3.445, allocations: 17.07 MB / 1.417 GB, free: 26.14 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01695/3.462, allocations: 9.944 MB / 1.427 GB, free: 17.59 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.478e-05/3.462, allocations: 6.625 kB / 1.427 GB, free: 17.59 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009274/3.471, allocations: 5.478 MB / 1.432 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01171/3.483, allocations: 1.957 MB / 1.434 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4725/3.956, allocations: 137.4 MB / 1.568 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01283/3.968, allocations: 9.106 MB / 1.577 GB, free: 14.46 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.007905/3.976, allocations: 2.525 MB / 1.579 GB, free: 14.23 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008082/3.984, allocations: 5.148 MB / 1.584 GB, free: 14.23 MB / 0.5573 GB Notification: Performance of SimCode: time 1.282e-06/3.984, allocations: 0 / 1.584 GB, free: 14.23 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6337/4.618, allocations: 186.5 MB / 1.766 GB, free: 78.75 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/4.618, allocations: 252.1 kB / 1.767 GB, free: 78.43 MB / 0.5573 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_DOL.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.c:7: In file included from ./Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_functions.h:1250: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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_functions.h:1259: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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.o] Error 1