Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",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.001158/0.001158, allocations: 180.5 kB / 16.38 MB, free: 5.766 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.44/1.44, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.0008418/0.000842, allocations: 96.28 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003127/0.000313, allocations: 4 kB / 351.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2863, allocations: 50.42 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.7359, allocations: 157.2 MB / 0.5457 GB, free: 44.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/0.7362, allocations: 107.7 kB / 0.5458 GB, free: 44.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.304/2.04, allocations: 375.4 MB / 0.9123 GB, free: 41.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.947e-06/2.04, allocations: 0 / 0.9123 GB, free: 41.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001236/2.042, allocations: 290 kB / 0.9126 GB, free: 41.84 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04418/2.086, allocations: 11.39 MB / 0.9237 GB, free: 38.03 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.436e-05/2.086, allocations: 7.5 kB / 0.9237 GB, free: 38.03 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009595/2.096, allocations: 1.716 MB / 0.9254 GB, free: 37.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02687/2.122, allocations: 4.426 MB / 0.9297 GB, free: 37.25 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02965/2.152, allocations: 9.366 MB / 0.9389 GB, free: 35.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001264/2.154, allocations: 0.8695 MB / 0.9397 GB, free: 35.02 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006016/2.16, allocations: 1.157 MB / 0.9409 GB, free: 34.64 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05505/2.215, allocations: 18.42 MB / 0.9588 GB, free: 23.15 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007578/2.215, allocations: 23.64 kB / 0.9589 GB, free: 23.13 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00482/2.22, allocations: 0.4915 MB / 0.9593 GB, free: 22.65 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009291/2.221, allocations: 0.811 MB / 0.9601 GB, free: 21.93 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04037/2.262, allocations: 15.53 MB / 0.9753 GB, free: 8.355 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4833/2.745, allocations: 59.13 MB / 1.033 GB, free: 30.14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03238/2.777, allocations: 32.76 MB / 1.065 GB, free: 34.39 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02339/2.801, allocations: 8.625 MB / 1.073 GB, free: 33.57 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.508e-05/2.801, allocations: 77.86 kB / 1.074 GB, free: 33.52 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=361): time 5.811e-06/2.801, allocations: 0 / 1.074 GB, free: 33.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=401): time 0.03746/2.838, allocations: 17.68 MB / 1.091 GB, free: 30.98 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.139e-05/2.839, allocations: 94.73 kB / 1.091 GB, free: 30.91 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00744/2.846, allocations: 4.307 MB / 1.095 GB, free: 30.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008689/2.847, allocations: 90.14 kB / 1.095 GB, free: 30.46 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003275/2.85, allocations: 5.435 MB / 1.1 GB, free: 27.52 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001784/2.852, allocations: 1.389 MB / 1.102 GB, free: 26.66 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005053/2.852, allocations: 136.9 kB / 1.102 GB, free: 26.66 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004357/2.853, allocations: 0.5765 MB / 1.103 GB, free: 26.35 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004161/2.857, allocations: 2.877 MB / 1.105 GB, free: 26.33 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007053/2.864, allocations: 5.893 MB / 1.111 GB, free: 22.58 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008623/2.873, allocations: 4.214 MB / 1.115 GB, free: 22.39 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000133/2.873, allocations: 28.78 kB / 1.115 GB, free: 22.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.02569/2.899, allocations: 9.828 MB / 1.125 GB, free: 20.88 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/2.899, allocations: 47.53 kB / 1.125 GB, free: 20.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002237/2.899, allocations: 103.5 kB / 1.125 GB, free: 20.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00329/2.902, allocations: 0.9385 MB / 1.126 GB, free: 20.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007833/2.91, allocations: 1.614 MB / 1.127 GB, free: 20.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/2.922, allocations: 9.643 MB / 1.137 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006537/2.929, allocations: 412.1 kB / 1.137 GB, free: 14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/2.93, allocations: 356.8 kB / 1.138 GB, free: 13.95 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (829): * Single equations (assignments): 823 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01067/2.941, allocations: 4.258 MB / 1.142 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001626/2.943, allocations: 0.516 MB / 1.142 GB, free: 11.69 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/2.954, allocations: 6.494 MB / 1.149 GB, free: 9.023 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.515e-05/2.954, allocations: 40.16 kB / 1.149 GB, free: 9.023 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.948e-05/2.954, allocations: 10.97 kB / 1.149 GB, free: 9.023 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.156e-05/2.954, allocations: 18.38 kB / 1.149 GB, free: 9.023 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03344/2.988, allocations: 15.71 MB / 1.164 GB, free: 2.707 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.467e-05/2.988, allocations: 3.969 kB / 1.164 GB, free: 2.707 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003437/2.991, allocations: 0.7689 MB / 1.165 GB, free: 2.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002111/2.993, allocations: 0.7711 MB / 1.166 GB, free: 2.473 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004579/2.994, allocations: 83.89 kB / 1.166 GB, free: 2.422 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0113/3.005, allocations: 8.83 MB / 1.174 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/3.005, allocations: 4 kB / 1.174 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01733/3.023, allocations: 9.803 MB / 1.184 GB, free: 2.855 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003499/3.026, allocations: 1.055 MB / 1.185 GB, free: 1.887 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001104/3.027, allocations: 82.33 kB / 1.185 GB, free: 1.812 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002779/3.03, allocations: 231.2 kB / 1.185 GB, free: 1.652 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005397/3.031, allocations: 272.7 kB / 1.185 GB, free: 1.484 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002755/3.031, allocations: 114.6 kB / 1.186 GB, free: 1.379 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.3551/3.386, allocations: 3.451 MB / 1.189 GB, free: 94.21 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.12e-07/3.386, allocations: 0 / 1.189 GB, free: 94.21 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009807/3.396, allocations: 1.929 MB / 1.191 GB, free: 94.21 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (379): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01758/3.413, allocations: 11.46 MB / 1.202 GB, free: 92.24 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01166/3.425, allocations: 7.653 MB / 1.209 GB, free: 91.57 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/3.425, allocations: 0 / 1.209 GB, free: 91.57 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00551/3.431, allocations: 3.555 MB / 1.213 GB, free: 90.97 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006279/3.437, allocations: 1.166 MB / 1.214 GB, free: 90.95 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1485/3.586, allocations: 129.5 MB / 1.34 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01798/3.604, allocations: 7.522 MB / 1.348 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008933/3.613, allocations: 2.15 MB / 1.35 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008661/3.621, allocations: 4.319 MB / 1.354 GB, free: 8.047 MB / 0.5261 GB Notification: Performance of SimCode: time 6.72e-07/3.621, allocations: 0 / 1.354 GB, free: 8.047 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.564/4.185, allocations: 147.3 MB / 1.498 GB, free: 79.38 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001671/4.185, allocations: 266.9 kB / 1.498 GB, free: 79.03 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_SynchronousMachines_SMR_CurrentSource.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_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_SynchronousMachines_SMR_CurrentSource.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_functions.h:1235:1: error: unknown type name '_omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_functions.h:1244:1: error: unknown type name '_omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v' _omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v omc__omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_functions.h:1253:1: error: unknown type name '_omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v' _omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v omc__omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_functions.h:1262:1: error: unknown type name '_omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v' _omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v omc__omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 4 errors generated. make: *** [: Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.o] Error 1