Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.2 MB / 245 MB, free: 5.773 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008072/0.0008072, allocations: 104 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002442/0.0002444, allocations: 4 kB / 358 MB, free: 9.168 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2319, allocations: 51.47 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3796/0.6115, allocations: 134.6 MB / 0.5314 GB, free: 45.12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.6118, allocations: 114.1 kB / 0.5315 GB, free: 45.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.178/1.79, allocations: 370.7 MB / 0.8935 GB, free: 55.55 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.709e-06/1.79, allocations: 0 / 0.8935 GB, free: 55.55 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001649/1.792, allocations: 213.3 kB / 0.8937 GB, free: 55.54 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03725/1.829, allocations: 10.08 MB / 0.9036 GB, free: 52.38 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/1.829, allocations: 9.062 kB / 0.9036 GB, free: 52.38 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007579/1.837, allocations: 1.618 MB / 0.9051 GB, free: 52.24 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02597/1.863, allocations: 4.306 MB / 0.9094 GB, free: 51.69 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02485/1.888, allocations: 8.446 MB / 0.9176 GB, free: 50.69 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001/1.889, allocations: 0.6936 MB / 0.9183 GB, free: 50.67 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004911/1.894, allocations: 0.912 MB / 0.9192 GB, free: 50.66 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04578/1.939, allocations: 16 MB / 0.9348 GB, free: 49.54 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005578/1.94, allocations: 11 kB / 0.9348 GB, free: 49.54 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004032/1.944, allocations: 398.9 kB / 0.9352 GB, free: 49.54 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008858/1.945, allocations: 0.7525 MB / 0.9359 GB, free: 49.51 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03229/1.977, allocations: 14.09 MB / 0.9497 GB, free: 45.98 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09901/2.076, allocations: 53.07 MB / 1.002 GB, free: 11.6 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02187/2.098, allocations: 20.1 MB / 1.021 GB, free: 7.02 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007655/2.099, allocations: 261.9 kB / 1.021 GB, free: 6.762 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001076/2.099, allocations: 80.59 kB / 1.021 GB, free: 6.676 MB / 490.7 MB Notification: Performance of pre-optimization done (n=453): time 6.142e-06/2.099, allocations: 0 / 1.021 GB, free: 6.676 MB / 490.7 MB Notification: Performance of matching and sorting (n=458): time 0.3779/2.477, allocations: 20.74 MB / 1.042 GB, free: 69.62 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/2.477, allocations: 98.67 kB / 1.042 GB, free: 69.55 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007746/2.485, allocations: 3.98 MB / 1.046 GB, free: 69.23 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001015/2.486, allocations: 96.23 kB / 1.046 GB, free: 69.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002386/2.489, allocations: 4.203 MB / 1.05 GB, free: 67.24 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002102/2.491, allocations: 1.556 MB / 1.051 GB, free: 66.26 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/2.491, allocations: 126.9 kB / 1.052 GB, free: 66.26 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003539/2.491, allocations: 0.5601 MB / 1.052 GB, free: 65.94 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004691/2.496, allocations: 3.07 MB / 1.055 GB, free: 65.92 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006186/2.502, allocations: 5.189 MB / 1.06 GB, free: 63.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007459/2.51, allocations: 4.263 MB / 1.064 GB, free: 63.35 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/2.51, allocations: 18.09 kB / 1.064 GB, free: 63.35 MB / 490.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01729/2.527, allocations: 9.845 MB / 1.074 GB, free: 62.95 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.585e-05/2.527, allocations: 35.12 kB / 1.074 GB, free: 62.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001505/2.528, allocations: 69.58 kB / 1.074 GB, free: 62.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003469/2.531, allocations: 1.402 MB / 1.075 GB, free: 62.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005259/2.536, allocations: 1.376 MB / 1.077 GB, free: 62.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01545/2.552, allocations: 11.97 MB / 1.088 GB, free: 60.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006709/2.559, allocations: 359.4 kB / 1.089 GB, free: 60.03 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001824/2.56, allocations: 290.9 kB / 1.089 GB, free: 60.03 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 311 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (723): * Single equations (assignments): 717 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009708/2.57, allocations: 3.889 MB / 1.093 GB, free: 59.87 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001857/2.572, allocations: 463.4 kB / 1.093 GB, free: 59.63 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01674/2.589, allocations: 8.584 MB / 1.102 GB, free: 58.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01113/2.6, allocations: 6.272 MB / 1.108 GB, free: 55.85 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.611e-05/2.6, allocations: 11.25 kB / 1.108 GB, free: 55.85 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-05/2.6, allocations: 25.59 kB / 1.108 GB, free: 55.85 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04202/2.642, allocations: 17.94 MB / 1.125 GB, free: 48.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.291e-05/2.642, allocations: 6.406 kB / 1.125 GB, free: 48.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003606/2.646, allocations: 0.794 MB / 1.126 GB, free: 48.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00351/2.649, allocations: 1.273 MB / 1.127 GB, free: 48.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009561/2.65, allocations: 99.97 kB / 1.127 GB, free: 48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01478/2.665, allocations: 10.88 MB / 1.138 GB, free: 41.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/2.665, allocations: 8.375 kB / 1.138 GB, free: 41.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01955/2.685, allocations: 12.03 MB / 1.15 GB, free: 35.54 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003785/2.689, allocations: 1.138 MB / 1.151 GB, free: 34.87 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001867/2.69, allocations: 92.64 kB / 1.151 GB, free: 34.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00396/2.694, allocations: 245.1 kB / 1.151 GB, free: 34.75 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001153/2.696, allocations: 328.4 kB / 1.152 GB, free: 34.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006608/2.696, allocations: 135.1 kB / 1.152 GB, free: 34.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006241/2.703, allocations: 3.043 MB / 1.155 GB, free: 32.45 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.703, allocations: 0 / 1.155 GB, free: 32.45 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009519/2.712, allocations: 1.795 MB / 1.156 GB, free: 30.66 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (418): * Single equations (assignments): 412 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,41.8%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0211/2.733, allocations: 14.88 MB / 1.171 GB, free: 17.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01362/2.747, allocations: 7.988 MB / 1.179 GB, free: 10.46 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/2.747, allocations: 4 kB / 1.179 GB, free: 10.45 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007417/2.754, allocations: 4.002 MB / 1.183 GB, free: 6.941 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0068/2.761, allocations: 0.9273 MB / 1.184 GB, free: 6.215 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.421/3.182, allocations: 100.4 MB / 1.282 GB, free: 49.53 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008113/3.19, allocations: 6.679 MB / 1.288 GB, free: 48.62 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005948/3.196, allocations: 2.137 MB / 1.29 GB, free: 48.57 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0051/3.202, allocations: 3.577 MB / 1.294 GB, free: 48.56 MB / 0.5105 GB Notification: Performance of SimCode: time 1.853e-06/3.202, allocations: 0 / 1.294 GB, free: 48.56 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4924/3.694, allocations: 139.5 MB / 1.43 GB, free: 66.75 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/3.694, allocations: 299.3 kB / 1.43 GB, free: 66.39 MB / 0.5105 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_withLosses.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_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_withLosses.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_functions.h:1054: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_withLosses_functions.h:1063:1: error: unknown type name '_omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPower' _omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPower omc__omcQComplexOutput_24electricalPowerSensorQS_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_withLosses.o] Error 1