Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Start.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/HanserModelica 2.0.0-master/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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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(HanserModelica.InductionMachines.IMS_Start,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Start,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Start",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.006599/0.006599, allocations: 170.8 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0407/0.04071, allocations: 8.798 MB / 24.65 MB, free: 4.109 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 250.7 MB, free: 4.863 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.0009514/0.0009512, allocations: 106.3 kB / 304 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003822, allocations: 11.98 kB / 367.2 MB, free: 6.711 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1128, allocations: 52.54 MB / 419.7 MB, free: 2.117 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4173/0.5301, allocations: 160 MB / 0.5661 GB, free: 12.17 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.5305, allocations: 83.97 kB / 0.5662 GB, free: 12.09 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.291/2.822, allocations: 0.573 GB / 1.139 GB, free: 45.25 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.006e-06/2.822, allocations: 0 / 1.139 GB, free: 45.25 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001443/2.823, allocations: 420.1 kB / 1.14 GB, free: 45.21 MB / 0.5105 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.07056/2.894, allocations: 17.97 MB / 1.157 GB, free: 39.69 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.197e-05/2.894, allocations: 8.969 kB / 1.157 GB, free: 39.69 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01779/2.911, allocations: 2.961 MB / 1.16 GB, free: 39.49 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04497/2.957, allocations: 7.871 MB / 1.168 GB, free: 38.47 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04716/3.004, allocations: 14.9 MB / 1.182 GB, free: 36.73 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001711/3.005, allocations: 1.31 MB / 1.184 GB, free: 36.69 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009854/3.015, allocations: 1.726 MB / 1.185 GB, free: 36.68 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08386/3.099, allocations: 29.22 MB / 1.214 GB, free: 34.46 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001024/3.1, allocations: 24.97 kB / 1.214 GB, free: 34.45 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00831/3.109, allocations: 0.7402 MB / 1.215 GB, free: 34.45 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001596/3.11, allocations: 1.274 MB / 1.216 GB, free: 34.41 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05843/3.169, allocations: 25.43 MB / 1.241 GB, free: 29.38 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6161/3.785, allocations: 94.12 MB / 1.333 GB, free: 37.07 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0449/3.83, allocations: 51.8 MB / 1.383 GB, free: 28.74 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04117/3.871, allocations: 16.55 MB / 1.399 GB, free: 27.62 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001015/3.871, allocations: 110.2 kB / 1.399 GB, free: 27.58 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=703): time 8.235e-06/3.871, allocations: 0 / 1.399 GB, free: 27.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=711): time 0.1037/3.975, allocations: 39.32 MB / 1.438 GB, free: 20.34 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/3.975, allocations: 152 kB / 1.438 GB, free: 20.24 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01362/3.989, allocations: 6.17 MB / 1.444 GB, free: 19.74 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001944/3.991, allocations: 145.7 kB / 1.444 GB, free: 19.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005996/3.997, allocations: 7.718 MB / 1.452 GB, free: 15.73 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003856/4.001, allocations: 2.401 MB / 1.454 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001442/4.002, allocations: 189.6 kB / 1.454 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0007909/4.003, allocations: 0.6903 MB / 1.455 GB, free: 13.89 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008582/4.011, allocations: 4.906 MB / 1.46 GB, free: 13.86 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01188/4.023, allocations: 8.143 MB / 1.468 GB, free: 9.91 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/4.035, allocations: 6.576 MB / 1.474 GB, free: 9.664 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001763/4.035, allocations: 30.69 kB / 1.474 GB, free: 9.664 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1225) (initialization): time 0.03536/4.07, allocations: 16 MB / 1.49 GB, free: 6.996 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/4.071, allocations: 49.75 kB / 1.49 GB, free: 6.996 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002337/4.071, allocations: 104.5 kB / 1.49 GB, free: 6.996 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007047/4.078, allocations: 2.462 MB / 1.492 GB, free: 6.32 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009478/4.087, allocations: 2.061 MB / 1.494 GB, free: 6.254 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4632/4.551, allocations: 29.16 MB / 1.523 GB, free: 92.14 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01054/4.561, allocations: 0.5397 MB / 1.523 GB, free: 92.14 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003224/4.564, allocations: 443.1 kB / 1.524 GB, free: 92.14 MB / 0.573 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.01899/4.583, allocations: 6.75 MB / 1.53 GB, free: 92.03 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002702/4.586, allocations: 0.7624 MB / 1.531 GB, free: 92.03 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02738/4.614, allocations: 13.34 MB / 1.544 GB, free: 91.2 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01726/4.631, allocations: 8.319 MB / 1.552 GB, free: 90.91 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.984e-05/4.631, allocations: 27.88 kB / 1.552 GB, free: 90.91 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001561/4.631, allocations: 35.91 kB / 1.552 GB, free: 90.91 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07274/4.704, allocations: 28.52 MB / 1.58 GB, free: 89.23 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.118e-05/4.704, allocations: 3.812 kB / 1.58 GB, free: 89.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006065/4.71, allocations: 1.143 MB / 1.581 GB, free: 89.23 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006372/4.717, allocations: 2.503 MB / 1.584 GB, free: 89.15 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001649/4.718, allocations: 151.3 kB / 1.584 GB, free: 89.15 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03572/4.754, allocations: 33.57 MB / 1.617 GB, free: 74.42 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/4.754, allocations: 6.969 kB / 1.617 GB, free: 74.42 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03531/4.789, allocations: 19.74 MB / 1.636 GB, free: 65.73 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008285/4.798, allocations: 1.789 MB / 1.638 GB, free: 65.01 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004144/4.802, allocations: 129.4 kB / 1.638 GB, free: 64.91 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007458/4.809, allocations: 428.4 kB / 1.638 GB, free: 64.82 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002822/4.812, allocations: 0.5471 MB / 1.639 GB, free: 64.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001243/4.814, allocations: 197.8 kB / 1.639 GB, free: 64.68 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01111/4.825, allocations: 4.664 MB / 1.643 GB, free: 63 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.61e-07/4.825, allocations: 2 kB / 1.643 GB, free: 63 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01867/4.843, allocations: 3.114 MB / 1.646 GB, free: 62.69 MB / 0.573 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.03597/4.879, allocations: 21.47 MB / 1.667 GB, free: 52.46 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.024/4.903, allocations: 13.51 MB / 1.681 GB, free: 44.74 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.484e-05/4.904, allocations: 4 kB / 1.681 GB, free: 44.73 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01313/4.917, allocations: 7.707 MB / 1.688 GB, free: 37.93 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01242/4.929, allocations: 1.965 MB / 1.69 GB, free: 36.47 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6196/5.549, allocations: 172 MB / 1.858 GB, free: 17.29 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03315/5.582, allocations: 11.66 MB / 1.869 GB, free: 16.16 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01483/5.597, allocations: 3.283 MB / 1.873 GB, free: 15.88 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01522/5.612, allocations: 6.661 MB / 1.879 GB, free: 15.87 MB / 0.6042 GB Notification: Performance of SimCode: time 2.435e-06/5.612, allocations: 6.938 kB / 1.879 GB, free: 15.87 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.077/6.689, allocations: 243 MB / 2.116 GB, free: 64.8 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001465/6.689, allocations: 194.3 kB / 2.117 GB, free: 64.57 MB / 0.6043 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o HanserModelica_HanserModelica_InductionMachines_IMS_Start.o HanserModelica_HanserModelica_InductionMachines_IMS_Start.c In file included from HanserModelica_HanserModelica_InductionMachines_IMS_Start.c:7: In file included from ./HanserModelica_HanserModelica_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 HanserModelica_HanserModelica_InductionMachines_IMS_Start.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMS_Start_model.h:24: ./HanserModelica_HanserModelica_InductionMachines_IMS_Start_functions.h:1374: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); ^ ./HanserModelica_HanserModelica_InductionMachines_IMS_Start_functions.h:1383: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: *** [: HanserModelica_HanserModelica_InductionMachines_IMS_Start.o] Error 1