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_Initialize.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_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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.001299/0.001299, allocations: 180.6 kB / 16.39 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.349/1.349, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.001232/0.001232, allocations: 99.39 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002716/0.0002716, allocations: 11.98 kB / 351.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2767, allocations: 50.39 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.469/0.7457, allocations: 147.4 MB / 0.5362 GB, free: 49.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.746, allocations: 111.2 kB / 0.5363 GB, free: 49.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.222/1.968, allocations: 349.5 MB / 0.8776 GB, free: 44.1 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.737e-06/1.968, allocations: 0 / 0.8776 GB, free: 44.1 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001061/1.969, allocations: 245.3 kB / 0.8779 GB, free: 44.08 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: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04101/2.01, allocations: 10.86 MB / 0.8885 GB, free: 40.61 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/2.01, allocations: 6.938 kB / 0.8885 GB, free: 40.61 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008191/2.018, allocations: 1.517 MB / 0.89 GB, free: 40.49 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02934/2.048, allocations: 4.771 MB / 0.8946 GB, free: 39.88 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03017/2.078, allocations: 9.502 MB / 0.9039 GB, free: 38.77 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001192/2.079, allocations: 0.7724 MB / 0.9047 GB, free: 38.75 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006199/2.085, allocations: 1.023 MB / 0.9057 GB, free: 38.74 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05836/2.144, allocations: 17.01 MB / 0.9223 GB, free: 37.51 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004615/2.144, allocations: 21.98 kB / 0.9223 GB, free: 37.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003368/2.148, allocations: 446.7 kB / 0.9227 GB, free: 37.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007962/2.148, allocations: 0.7447 MB / 0.9234 GB, free: 37.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03454/2.183, allocations: 15.34 MB / 0.9384 GB, free: 37.28 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1124/2.296, allocations: 55.88 MB / 0.993 GB, free: 5.422 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4133/2.709, allocations: 31.09 MB / 1.023 GB, free: 34.66 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01894/2.728, allocations: 10.23 MB / 1.033 GB, free: 33.91 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.387e-05/2.728, allocations: 83.3 kB / 1.033 GB, free: 33.87 MB / 490.7 MB Notification: Performance of pre-optimization done (n=410): time 5.901e-06/2.728, allocations: 0 / 1.033 GB, free: 33.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=435): time 0.04935/2.777, allocations: 22.22 MB / 1.055 GB, free: 29.98 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.039e-05/2.778, allocations: 125.7 kB / 1.055 GB, free: 29.88 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007055/2.785, allocations: 4.109 MB / 1.059 GB, free: 29.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001078/2.786, allocations: 99.36 kB / 1.059 GB, free: 29.54 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003168/2.789, allocations: 4.636 MB / 1.064 GB, free: 27.25 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002067/2.791, allocations: 1.487 MB / 1.065 GB, free: 26.31 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000372/2.791, allocations: 117.1 kB / 1.065 GB, free: 26.31 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003251/2.792, allocations: 0.5435 MB / 1.066 GB, free: 25.99 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004465/2.796, allocations: 2.946 MB / 1.069 GB, free: 25.98 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005485/2.802, allocations: 4.941 MB / 1.074 GB, free: 23.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005775/2.807, allocations: 3.992 MB / 1.078 GB, free: 23.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-05/2.807, allocations: 17.69 kB / 1.078 GB, free: 23.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.0174/2.825, allocations: 9.792 MB / 1.087 GB, free: 23.05 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/2.825, allocations: 33.62 kB / 1.087 GB, free: 23.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001515/2.825, allocations: 65.38 kB / 1.087 GB, free: 23.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004728/2.83, allocations: 1.669 MB / 1.089 GB, free: 23.01 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005661/2.836, allocations: 1.329 MB / 1.09 GB, free: 23.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02341/2.859, allocations: 16.95 MB / 1.107 GB, free: 16.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007229/2.866, allocations: 340.9 kB / 1.107 GB, free: 16.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001845/2.868, allocations: 282.3 kB / 1.107 GB, free: 16.22 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 292 * 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 (679): * Single equations (assignments): 675 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,59.2%) 28,(1,100.0%) 1,(14,38.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0116/2.88, allocations: 3.889 MB / 1.111 GB, free: 14.32 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002821/2.883, allocations: 497.2 kB / 1.112 GB, free: 14.06 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01991/2.903, allocations: 7.922 MB / 1.119 GB, free: 10.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.824e-05/2.903, allocations: 44.38 kB / 1.119 GB, free: 10.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.961e-05/2.903, allocations: 17.97 kB / 1.119 GB, free: 10.69 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.541e-05/2.903, allocations: 20.25 kB / 1.119 GB, free: 10.69 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04352/2.946, allocations: 17.75 MB / 1.137 GB, free: 3.094 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.552e-05/2.947, allocations: 5.688 kB / 1.137 GB, free: 3.094 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004065/2.951, allocations: 0.7508 MB / 1.137 GB, free: 3.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004839/2.956, allocations: 1.564 MB / 1.139 GB, free: 2.676 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001053/2.957, allocations: 103.4 kB / 1.139 GB, free: 2.613 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02346/2.98, allocations: 19.93 MB / 1.159 GB, free: 4.152 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/2.98, allocations: 9.844 kB / 1.159 GB, free: 4.152 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02195/3.002, allocations: 12.38 MB / 1.171 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004677/3.007, allocations: 1.17 MB / 1.172 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001898/3.009, allocations: 95.84 kB / 1.172 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004191/3.013, allocations: 248.2 kB / 1.172 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0011/3.014, allocations: 333.6 kB / 1.172 GB, free: 9.953 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003734/3.014, allocations: 138.3 kB / 1.173 GB, free: 9.828 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007215/3.022, allocations: 3.097 MB / 1.176 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.774e-06/3.022, allocations: 2.812 kB / 1.176 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01248/3.034, allocations: 1.925 MB / 1.177 GB, free: 5.324 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,imc.stator.zeroInductor.i0,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 (376): * Single equations (assignments): 369 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,38.8%) 44,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02311/3.057, allocations: 14.73 MB / 1.192 GB, free: 8.004 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01648/3.074, allocations: 8.235 MB / 1.2 GB, free: 0.918 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.501e-05/3.074, allocations: 0 / 1.2 GB, free: 0.918 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.3368/3.411, allocations: 4.771 MB / 1.205 GB, free: 99.49 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007266/3.418, allocations: 1.178 MB / 1.206 GB, free: 99.47 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1524/3.571, allocations: 101.6 MB / 1.305 GB, free: 33.26 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01727/3.588, allocations: 6.959 MB / 1.312 GB, free: 32.24 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01096/3.599, allocations: 1.859 MB / 1.314 GB, free: 32.05 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01101/3.61, allocations: 3.926 MB / 1.317 GB, free: 32.05 MB / 0.5261 GB Notification: Performance of SimCode: time 1.389e-05/3.61, allocations: 0 / 1.317 GB, free: 32.05 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.606/4.216, allocations: 150.9 MB / 1.465 GB, free: 81.23 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/4.216, allocations: 256.2 kB / 1.465 GB, free: 80.88 MB / 0.5261 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_Initialize.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_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_Initialize.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_functions.h:1207: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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.o] Error 1