Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.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_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001096/0.001096, allocations: 201.8 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009535/0.0009535, allocations: 95.09 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002636/0.0002636, allocations: 11.98 kB / 358.1 MB, free: 9.402 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2275, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3791/0.6066, allocations: 125.9 MB / 0.5229 GB, free: 47.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.6069, allocations: 104.8 kB / 0.523 GB, free: 47.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7877/1.395, allocations: 286.2 MB / 0.8025 GB, free: 46.51 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.976e-06/1.395, allocations: 192 / 0.8025 GB, free: 46.51 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000604/1.395, allocations: 163.6 kB / 0.8026 GB, free: 46.36 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2107 * Number of variables: 2107 Notification: Performance of Generate backend data structure: time 0.02543/1.421, allocations: 7.729 MB / 0.8102 GB, free: 38.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/1.421, allocations: 12.03 kB / 0.8102 GB, free: 38.58 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004773/1.426, allocations: 1.088 MB / 0.8112 GB, free: 37.49 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02267/1.448, allocations: 4.024 MB / 0.8152 GB, free: 33.48 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01773/1.466, allocations: 6.702 MB / 0.8217 GB, free: 26.81 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007761/1.467, allocations: 0.5375 MB / 0.8222 GB, free: 26.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0042/1.471, allocations: 0.7131 MB / 0.8229 GB, free: 25.58 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02978/1.501, allocations: 12.71 MB / 0.8353 GB, free: 12.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004077/1.501, allocations: 15.81 kB / 0.8354 GB, free: 12.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002624/1.504, allocations: 313 kB / 0.8357 GB, free: 12.35 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006336/1.505, allocations: 0.6093 MB / 0.8363 GB, free: 11.73 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5547/2.059, allocations: 11.89 MB / 0.8479 GB, free: 50.79 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06457/2.124, allocations: 41.87 MB / 0.8888 GB, free: 44.2 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01644/2.14, allocations: 26.22 MB / 0.9144 GB, free: 22.64 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005487/2.141, allocations: 252.9 kB / 0.9146 GB, free: 22.45 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.024e-05/2.141, allocations: 75.59 kB / 0.9147 GB, free: 22.41 MB / 458.8 MB Notification: Performance of pre-optimization done (n=410): time 8.846e-06/2.141, allocations: 0 / 0.9147 GB, free: 22.41 MB / 458.8 MB Notification: Performance of matching and sorting (n=415): time 0.04002/2.181, allocations: 17.09 MB / 0.9314 GB, free: 17.99 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.259e-05/2.181, allocations: 92.98 kB / 0.9315 GB, free: 17.92 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006104/2.187, allocations: 2.484 MB / 0.9339 GB, free: 16.95 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006265/2.188, allocations: 98.17 kB / 0.934 GB, free: 16.86 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001903/2.19, allocations: 3.037 MB / 0.9369 GB, free: 14.58 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001481/2.192, allocations: 1.396 MB / 0.9383 GB, free: 13.5 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006158/2.192, allocations: 102.1 kB / 0.9384 GB, free: 13.42 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004277/2.193, allocations: 0.5019 MB / 0.9389 GB, free: 13.03 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003932/2.197, allocations: 2.506 MB / 0.9413 GB, free: 12.05 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004973/2.202, allocations: 4.092 MB / 0.9453 GB, free: 9.074 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005013/2.207, allocations: 3.424 MB / 0.9487 GB, free: 7.555 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.593e-05/2.207, allocations: 14.12 kB / 0.9487 GB, free: 7.555 MB / 458.8 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.01472/2.221, allocations: 8.011 MB / 0.9565 GB, free: 4.648 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.866e-05/2.221, allocations: 30.52 kB / 0.9565 GB, free: 4.645 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/2.222, allocations: 47.19 kB / 0.9566 GB, free: 4.645 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003336/2.225, allocations: 1.21 MB / 0.9578 GB, free: 4.41 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004467/2.229, allocations: 1.135 MB / 0.9589 GB, free: 4.371 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/2.244, allocations: 10.68 MB / 0.9693 GB, free: 14.1 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004594/2.248, allocations: 273.4 kB / 0.9696 GB, free: 14.01 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/2.25, allocations: 231.8 kB / 0.9698 GB, free: 13.97 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 228 * 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 (590): * Single equations (assignments): 588 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%) 1,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007723/2.258, allocations: 2.954 MB / 0.9727 GB, free: 12.51 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001316/2.259, allocations: 348.4 kB / 0.973 GB, free: 12.33 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01398/2.273, allocations: 6.707 MB / 0.9796 GB, free: 9.613 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.888e-05/2.273, allocations: 44.81 kB / 0.9796 GB, free: 9.613 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.032e-05/2.273, allocations: 10.81 kB / 0.9796 GB, free: 9.613 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.913e-05/2.273, allocations: 24.62 kB / 0.9796 GB, free: 9.609 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03664/2.31, allocations: 15.25 MB / 0.9945 GB, free: 2.359 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.562e-05/2.31, allocations: 8 kB / 0.9945 GB, free: 2.352 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003446/2.313, allocations: 0.7459 MB / 0.9953 GB, free: 1.766 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003295/2.317, allocations: 1.097 MB / 0.9963 GB, free: 0.9414 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007892/2.317, allocations: 93.62 kB / 0.9964 GB, free: 0.8555 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01523/2.333, allocations: 9.641 MB / 1.006 GB, free: 8.266 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.116e-05/2.333, allocations: 14.05 kB / 1.006 GB, free: 8.258 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0245/2.357, allocations: 10.85 MB / 1.016 GB, free: 15.89 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003696/2.361, allocations: 0.9219 MB / 1.017 GB, free: 15.05 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001594/2.363, allocations: 76 kB / 1.017 GB, free: 14.98 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0034/2.366, allocations: 223.4 kB / 1.018 GB, free: 14.82 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001338/2.367, allocations: 298.2 kB / 1.018 GB, free: 14.62 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007868/2.368, allocations: 123.6 kB / 1.018 GB, free: 14.51 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004891/2.373, allocations: 1.909 MB / 1.02 GB, free: 12.91 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.6e-07/2.373, allocations: 0 / 1.02 GB, free: 12.91 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.007455/2.381, allocations: 1.441 MB / 1.021 GB, free: 11.48 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 3 (aimc.inertiaRotor.phi,aimc.rotorCage.port_p.reference.gamma,loadInertia.w) * 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 (398): * Single equations (assignments): 396 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%) 1,(14,40.3%) 44} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2947/2.675, allocations: 12.87 MB / 1.034 GB, free: 101.6 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01455/2.69, allocations: 6.716 MB / 1.04 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/2.69, allocations: 1.5 kB / 1.04 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.007578/2.698, allocations: 3.579 MB / 1.044 GB, free: 100.9 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005437/2.703, allocations: 0.7275 MB / 1.045 GB, free: 100.9 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09191/2.795, allocations: 74.21 MB / 1.117 GB, free: 53.42 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01003/2.805, allocations: 5.209 MB / 1.122 GB, free: 52.47 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.005932/2.811, allocations: 1.674 MB / 1.124 GB, free: 52.34 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005166/2.816, allocations: 2.603 MB / 1.126 GB, free: 52.32 MB / 0.4949 GB Notification: Performance of SimCode: time 1.393e-06/2.816, allocations: 0 / 1.126 GB, free: 52.32 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4634/3.28, allocations: 109.2 MB / 1.233 GB, free: 76.48 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/3.28, allocations: 254.6 kB / 1.233 GB, free: 76.14 MB / 0.4949 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_Inverter.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_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_Inverter.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_functions.h:1021:1: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensor_24currentSensor_24i' _omcQComplexOutput_24currentQuasiRMSSensor_24currentSensor_24i omc__omcQComplexOutput_24currentQuasiRMSSensor_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_Inverter.o] Error 1