Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 198.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.2 MB / 245 MB, free: 5.758 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00102/0.00102, allocations: 105.4 kB / 297.3 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002632/0.0002634, allocations: 4 kB / 358 MB, free: 9.164 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2559, allocations: 51.49 MB / 409.5 MB, free: 26.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4233/0.6793, allocations: 163.7 MB / 0.5598 GB, free: 32.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.6797, allocations: 111.9 kB / 0.5599 GB, free: 32.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.991/2.671, allocations: 0.5997 GB / 1.16 GB, free: 31.25 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.534e-06/2.671, allocations: 0 / 1.16 GB, free: 31.25 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.002056/2.673, allocations: 423.5 kB / 1.16 GB, free: 31.18 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.08391/2.757, allocations: 18.05 MB / 1.178 GB, free: 25.54 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.377e-05/2.757, allocations: 9.125 kB / 1.178 GB, free: 25.54 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.02128/2.778, allocations: 2.963 MB / 1.181 GB, free: 25.33 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04615/2.825, allocations: 7.903 MB / 1.188 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04165/2.866, allocations: 14.91 MB / 1.203 GB, free: 18.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001824/2.868, allocations: 1.313 MB / 1.204 GB, free: 16.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01055/2.879, allocations: 1.724 MB / 1.206 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7124/3.591, allocations: 29.55 MB / 1.235 GB, free: 27.62 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001006/3.592, allocations: 25.97 kB / 1.235 GB, free: 27.62 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007656/3.6, allocations: 0.7433 MB / 1.235 GB, free: 27.62 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001615/3.602, allocations: 1.269 MB / 1.237 GB, free: 27.57 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05534/3.657, allocations: 25.43 MB / 1.261 GB, free: 27.4 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.163/3.82, allocations: 94.97 MB / 1.354 GB, free: 7.227 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04653/3.867, allocations: 52.39 MB / 1.405 GB, free: 8.902 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03484/3.902, allocations: 16.87 MB / 1.422 GB, free: 0.918 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.908e-05/3.902, allocations: 111.6 kB / 1.422 GB, free: 0.8242 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=703): time 7.865e-06/3.902, allocations: 2.297 kB / 1.422 GB, free: 0.8242 MB / 0.5574 GB Notification: Performance of matching and sorting (n=711): time 0.5013/4.403, allocations: 39.46 MB / 1.46 GB, free: 94.4 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/4.403, allocations: 156.9 kB / 1.461 GB, free: 94.3 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01163/4.415, allocations: 6.185 MB / 1.467 GB, free: 93.8 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.001858/4.417, allocations: 145.8 kB / 1.467 GB, free: 93.77 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.005174/4.422, allocations: 7.724 MB / 1.474 GB, free: 89.79 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.003539/4.426, allocations: 2.396 MB / 1.477 GB, free: 88.28 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007219/4.426, allocations: 190.8 kB / 1.477 GB, free: 88.28 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0005826/4.427, allocations: 0.6928 MB / 1.478 GB, free: 87.95 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007246/4.434, allocations: 4.908 MB / 1.482 GB, free: 87.93 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01041/4.445, allocations: 8.15 MB / 1.49 GB, free: 84.02 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/4.456, allocations: 6.572 MB / 1.497 GB, free: 83.78 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001858/4.456, allocations: 30.81 kB / 1.497 GB, free: 83.78 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1225) (initialization): time 0.03458/4.491, allocations: 16.01 MB / 1.512 GB, free: 82.7 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003221/4.491, allocations: 49.59 kB / 1.512 GB, free: 82.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003818/4.492, allocations: 104.6 kB / 1.513 GB, free: 82.7 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007519/4.499, allocations: 2.455 MB / 1.515 GB, free: 82.59 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009383/4.509, allocations: 2.067 MB / 1.517 GB, free: 82.59 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04123/4.55, allocations: 28.99 MB / 1.545 GB, free: 67.59 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01302/4.563, allocations: 0.5379 MB / 1.546 GB, free: 67.42 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003636/4.567, allocations: 444.5 kB / 1.546 GB, free: 67.34 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1076): * Single equations (assignments): 1063 * 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: 8 * 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: 8 {(1,100.0%) 1,(18,38.0%) 100,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02283/4.589, allocations: 6.752 MB / 1.553 GB, free: 64.21 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005064/4.595, allocations: 0.7702 MB / 1.554 GB, free: 63.81 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03659/4.631, allocations: 13.34 MB / 1.567 GB, free: 58.16 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01706/4.648, allocations: 8.318 MB / 1.575 GB, free: 53.27 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000122/4.648, allocations: 28 kB / 1.575 GB, free: 53.24 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001876/4.649, allocations: 35.95 kB / 1.575 GB, free: 53.24 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0601/4.709, allocations: 28.54 MB / 1.603 GB, free: 29.87 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.977e-05/4.709, allocations: 4 kB / 1.603 GB, free: 29.86 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005027/4.714, allocations: 1.133 MB / 1.604 GB, free: 28.99 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005985/4.72, allocations: 2.511 MB / 1.606 GB, free: 27.07 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001402/4.721, allocations: 158.2 kB / 1.606 GB, free: 26.93 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4094/5.131, allocations: 33.7 MB / 1.639 GB, free: 73.81 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/5.131, allocations: 7.719 kB / 1.639 GB, free: 73.81 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03378/5.165, allocations: 19.73 MB / 1.659 GB, free: 71.88 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007259/5.172, allocations: 1.797 MB / 1.66 GB, free: 71.79 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002821/5.175, allocations: 128.5 kB / 1.66 GB, free: 71.79 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006139/5.181, allocations: 425.6 kB / 1.661 GB, free: 71.79 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002042/5.183, allocations: 0.5459 MB / 1.661 GB, free: 71.77 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001031/5.184, allocations: 195.7 kB / 1.662 GB, free: 71.77 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.009514/5.194, allocations: 4.676 MB / 1.666 GB, free: 71.56 MB / 0.5574 GB Notification: Performance of sort global known variables: time 4.61e-07/5.194, allocations: 0 / 1.666 GB, free: 71.56 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01645/5.21, allocations: 3.121 MB / 1.669 GB, free: 71.56 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.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 (583): * Single equations (assignments): 568 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,38.3%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03989/5.25, allocations: 21.49 MB / 1.69 GB, free: 68.61 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.02561/5.276, allocations: 13.49 MB / 1.703 GB, free: 67.25 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.69e-05/5.276, allocations: 3.031 kB / 1.703 GB, free: 67.25 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.01595/5.292, allocations: 7.722 MB / 1.711 GB, free: 65.82 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01252/5.304, allocations: 1.965 MB / 1.713 GB, free: 65.79 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5566/5.861, allocations: 172.4 MB / 1.881 GB, free: 99.15 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01678/5.878, allocations: 11.68 MB / 1.893 GB, free: 98.03 MB / 0.5887 GB Notification: Performance of simCode: alias equations: time 0.01068/5.888, allocations: 3.285 MB / 1.896 GB, free: 97.95 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01154/5.9, allocations: 6.683 MB / 1.902 GB, free: 97.95 MB / 0.5887 GB Notification: Performance of SimCode: time 1.152e-06/5.9, allocations: 0 / 1.902 GB, free: 97.95 MB / 0.5887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7435/6.643, allocations: 243.5 MB / 2.14 GB, free: 99.11 MB / 0.5887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/6.644, allocations: 259.2 kB / 2.14 GB, free: 98.77 MB / 0.5887 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_IMS_Start.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_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_IMS_Start.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_functions.h:1376: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_IMS_Start_functions.h:1385: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_IMS_Start.o] Error 1