Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.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) Ignoring simflag -noemit -jacobian= since it seems broken on HelloWorld Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Transformer,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Transformer,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Transformer",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.004894/0.004894, allocations: 170.2 kB / 15.11 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03774/0.03774, allocations: 8.799 MB / 24.65 MB, free: 4.164 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.308/1.308, allocations: 223.2 MB / 250.7 MB, free: 6.598 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.00107/0.00107, allocations: 95.8 kB / 304 MB, free: 4.039 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004175/0.0004177, allocations: 8 kB / 370.5 MB, free: 1.527 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3025, allocations: 52.53 MB / 423 MB, free: 49.93 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4371/0.7397, allocations: 164.5 MB / 0.5737 GB, free: 108.4 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.7399, allocations: 76.28 kB / 0.5738 GB, free: 108.4 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.932/3.672, allocations: 0.863 GB / 1.437 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.339e-06/3.672, allocations: 0 / 1.437 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.001875/3.674, allocations: 479.4 kB / 1.437 GB, free: 31.03 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.1058/3.78, allocations: 20.65 MB / 1.457 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.23e-05/3.78, allocations: 12.03 kB / 1.457 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01661/3.797, allocations: 2.985 MB / 1.46 GB, free: 7.227 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.8378/4.635, allocations: 9.725 MB / 1.47 GB, free: 24.38 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04417/4.679, allocations: 16.29 MB / 1.486 GB, free: 23.64 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001897/4.681, allocations: 1.514 MB / 1.487 GB, free: 23.6 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009456/4.69, allocations: 1.999 MB / 1.489 GB, free: 23.59 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1062/4.797, allocations: 34.22 MB / 1.523 GB, free: 21.23 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001446/4.798, allocations: 34.78 kB / 1.523 GB, free: 21.22 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009599/4.808, allocations: 0.8551 MB / 1.523 GB, free: 21.22 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002179/4.81, allocations: 1.481 MB / 1.525 GB, free: 21.17 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07837/4.888, allocations: 30.14 MB / 1.554 GB, free: 20.98 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2278/5.116, allocations: 107.7 MB / 1.659 GB, free: 10.98 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8811/5.997, allocations: 50.73 MB / 1.709 GB, free: 48.48 MB / 0.5888 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05056/6.048, allocations: 21.59 MB / 1.73 GB, free: 47.59 MB / 0.5888 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/6.048, allocations: 137.5 kB / 1.73 GB, free: 47.54 MB / 0.5888 GB Notification: Performance of pre-optimization done (n=906): time 1.287e-05/6.048, allocations: 0.9688 kB / 1.73 GB, free: 47.54 MB / 0.5888 GB Notification: Performance of matching and sorting (n=918): time 0.09214/6.14, allocations: 39.72 MB / 1.769 GB, free: 41.05 MB / 0.5888 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.613e-05/6.141, allocations: 172.7 kB / 1.769 GB, free: 40.95 MB / 0.5888 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01789/6.158, allocations: 7.403 MB / 1.776 GB, free: 40.39 MB / 0.5888 GB Notification: Performance of collectPreVariables (initialization): time 0.002291/6.161, allocations: 179.6 kB / 1.777 GB, free: 40.36 MB / 0.5888 GB Notification: Performance of collectInitialEqns (initialization): time 0.007165/6.168, allocations: 8.669 MB / 1.785 GB, free: 35.93 MB / 0.5888 GB Notification: Performance of collectInitialBindings (initialization): time 0.004887/6.173, allocations: 3.087 MB / 1.788 GB, free: 33.97 MB / 0.5888 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002464/6.175, allocations: 228.6 kB / 1.788 GB, free: 33.97 MB / 0.5888 GB Notification: Performance of setup shared object (initialization): time 0.001252/6.177, allocations: 0.7765 MB / 1.789 GB, free: 33.64 MB / 0.5888 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01179/6.188, allocations: 6.227 MB / 1.795 GB, free: 33.62 MB / 0.5888 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01611/6.205, allocations: 9.817 MB / 1.805 GB, free: 29.43 MB / 0.5888 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01623/6.221, allocations: 8.274 MB / 1.813 GB, free: 29.32 MB / 0.5888 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002501/6.221, allocations: 35.62 kB / 1.813 GB, free: 29.32 MB / 0.5888 GB Notification: Performance of matching and sorting (n=1480) (initialization): time 0.0444/6.266, allocations: 20.19 MB / 1.833 GB, free: 22.05 MB / 0.5888 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001878/6.266, allocations: 53.59 kB / 1.833 GB, free: 22.05 MB / 0.5888 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003157/6.266, allocations: 115.6 kB / 1.833 GB, free: 22.05 MB / 0.5888 GB Notification: Tearing is skipped for strong component 1 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.002299/6.268, allocations: 0.8146 MB / 1.833 GB, free: 21.84 MB / 0.5888 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01091/6.279, allocations: 2.389 MB / 1.836 GB, free: 21.76 MB / 0.5888 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009743/6.289, allocations: 11.72 MB / 1.847 GB, free: 12.73 MB / 0.5888 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01174/6.301, allocations: 0.6034 MB / 1.848 GB, free: 12.54 MB / 0.5888 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003209/6.304, allocations: 0.5135 MB / 1.848 GB, free: 12.44 MB / 0.5888 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1226): * Single equations (assignments): 1219 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01987/6.324, allocations: 7.913 MB / 1.856 GB, free: 8.762 MB / 0.5888 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004057/6.328, allocations: 0.9118 MB / 1.857 GB, free: 8.285 MB / 0.5888 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03768/6.366, allocations: 17.14 MB / 1.874 GB, free: 1.355 MB / 0.5888 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-05/6.366, allocations: 92.5 kB / 1.874 GB, free: 1.355 MB / 0.5888 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001179/6.366, allocations: 40.94 kB / 1.874 GB, free: 1.355 MB / 0.5888 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000231/6.366, allocations: 46.12 kB / 1.874 GB, free: 1.355 MB / 0.5888 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1024/6.469, allocations: 36.82 MB / 1.91 GB, free: 7.152 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.341e-05/6.469, allocations: 4 kB / 1.91 GB, free: 7.148 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007918/6.477, allocations: 1.446 MB / 1.911 GB, free: 6.035 MB / 0.62 GB Notification: Tearing is skipped for strong component 14 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.002946/6.48, allocations: 0.8504 MB / 1.912 GB, free: 5.348 MB / 0.62 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002513/6.482, allocations: 203.8 kB / 1.912 GB, free: 5.164 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5083/6.991, allocations: 16.01 MB / 1.928 GB, free: 100.5 MB / 0.62 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/6.991, allocations: 8.938 kB / 1.928 GB, free: 100.5 MB / 0.62 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05011/7.041, allocations: 26.11 MB / 1.953 GB, free: 97.85 MB / 0.62 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009378/7.05, allocations: 2.269 MB / 1.956 GB, free: 97.76 MB / 0.62 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004345/7.055, allocations: 180.6 kB / 1.956 GB, free: 97.76 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008877/7.064, allocations: 0.5114 MB / 1.956 GB, free: 97.76 MB / 0.62 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003612/7.067, allocations: 0.798 MB / 1.957 GB, free: 97.74 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002036/7.069, allocations: 261.5 kB / 1.957 GB, free: 97.74 MB / 0.62 GB Notification: Performance of sorting global known variables: time 0.01517/7.084, allocations: 5.621 MB / 1.963 GB, free: 97.49 MB / 0.62 GB Notification: Performance of sort global known variables: time 6.01e-07/7.085, allocations: 3.062 kB / 1.963 GB, free: 97.49 MB / 0.62 GB Notification: Performance of remove unused functions: time 0.01963/7.104, allocations: 3.528 MB / 1.966 GB, free: 97.49 MB / 0.62 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (715): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04915/7.153, allocations: 28.25 MB / 1.994 GB, free: 93.53 MB / 0.62 GB Notification: Performance of simCode: created initialization part: time 0.03022/7.184, allocations: 16.13 MB / 2.01 GB, free: 92.51 MB / 0.62 GB Notification: Performance of simCode: created event and clocks part: time 1.571e-05/7.184, allocations: 6.031 kB / 2.01 GB, free: 92.51 MB / 0.62 GB Notification: Performance of simCode: created simulation system equations: time 0.01657/7.2, allocations: 8.816 MB / 2.018 GB, free: 91.5 MB / 0.62 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01521/7.215, allocations: 2.338 MB / 2.021 GB, free: 91.47 MB / 0.62 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7482/7.964, allocations: 202.7 MB / 2.218 GB, free: 99.69 MB / 0.6357 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03383/7.998, allocations: 13.46 MB / 2.232 GB, free: 98.52 MB / 0.6357 GB Notification: Performance of simCode: alias equations: time 0.01921/8.017, allocations: 3.973 MB / 2.235 GB, free: 98.36 MB / 0.6357 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0195/8.036, allocations: 7.736 MB / 2.243 GB, free: 98.35 MB / 0.6357 GB Notification: Performance of SimCode: time 1.893e-06/8.036, allocations: 0 / 2.243 GB, free: 98.35 MB / 0.6357 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9182/8.955, allocations: 282.6 MB / 2.519 GB, free: 74.52 MB / 0.6357 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/8.955, allocations: 193.9 kB / 2.519 GB, free: 74.29 MB / 0.6357 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_IMC_Transformer.o HanserModelica_HanserModelica_InductionMachines_IMC_Transformer.c In file included from HanserModelica_HanserModelica_InductionMachines_IMC_Transformer.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMC_Transformer_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_IMC_Transformer.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMC_Transformer_model.h:24: ./HanserModelica_HanserModelica_InductionMachines_IMC_Transformer_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); ^ 2 warnings and 1 error generated. make: *** [: HanserModelica_HanserModelica_InductionMachines_IMC_Transformer.o] Error 1