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.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/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.IMS_Start,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001563/0.001566, allocations: 180.4 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.464/1.464, 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.00088/0.00088, allocations: 94.06 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002989/0.0002984, allocations: 8 kB / 351.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2842, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4717/0.756, allocations: 162.7 MB / 0.5511 GB, free: 41.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/0.7563, allocations: 112.7 kB / 0.5512 GB, free: 41.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.102/2.859, allocations: 0.5727 GB / 1.124 GB, free: 28.33 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.345e-06/2.859, allocations: 0 / 1.124 GB, free: 28.33 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0023/2.861, allocations: 419.6 kB / 1.124 GB, free: 28.26 MB / 490.7 MB 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.07297/2.934, allocations: 17.97 MB / 1.142 GB, free: 22.64 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/2.934, allocations: 9.062 kB / 1.142 GB, free: 22.64 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01644/2.951, allocations: 2.955 MB / 1.145 GB, free: 22.43 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04541/2.996, allocations: 7.876 MB / 1.152 GB, free: 21.41 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04463/3.041, allocations: 14.87 MB / 1.167 GB, free: 12.01 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001839/3.043, allocations: 1.309 MB / 1.168 GB, free: 10.71 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009345/3.052, allocations: 1.724 MB / 1.17 GB, free: 9.012 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09923/3.151, allocations: 29.53 MB / 1.199 GB, free: 192 kB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001172/3.152, allocations: 23.75 kB / 1.199 GB, free: 168 kB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.427/3.579, allocations: 0.7417 MB / 1.199 GB, free: 50.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002776/3.582, allocations: 1.269 MB / 1.201 GB, free: 50.05 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06078/3.643, allocations: 25.42 MB / 1.226 GB, free: 49.88 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1778/3.821, allocations: 94.1 MB / 1.317 GB, free: 16.49 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.046/3.867, allocations: 51.79 MB / 1.368 GB, free: 2.875 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0454/3.912, allocations: 16.6 MB / 1.384 GB, free: 11.42 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001049/3.913, allocations: 106.5 kB / 1.384 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=703): time 9.348e-06/3.913, allocations: 0 / 1.384 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of matching and sorting (n=711): time 0.5308/4.443, allocations: 39.32 MB / 1.423 GB, free: 93.02 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.867e-05/4.444, allocations: 152.5 kB / 1.423 GB, free: 92.92 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01404/4.458, allocations: 6.165 MB / 1.429 GB, free: 92.42 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001797/4.46, allocations: 148.3 kB / 1.429 GB, free: 92.39 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.005814/4.465, allocations: 7.718 MB / 1.437 GB, free: 88.41 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003721/4.469, allocations: 2.395 MB / 1.439 GB, free: 86.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001453/4.471, allocations: 194.5 kB / 1.439 GB, free: 86.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0007567/4.471, allocations: 0.6907 MB / 1.44 GB, free: 86.57 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008642/4.48, allocations: 4.905 MB / 1.445 GB, free: 86.55 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01191/4.492, allocations: 8.137 MB / 1.453 GB, free: 82.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01162/4.504, allocations: 6.579 MB / 1.459 GB, free: 82.59 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002185/4.504, allocations: 30.81 kB / 1.459 GB, free: 82.59 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1225) (initialization): time 0.03859/4.542, allocations: 15.99 MB / 1.475 GB, free: 81.61 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001765/4.543, allocations: 52.09 kB / 1.475 GB, free: 81.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003137/4.543, allocations: 112.7 kB / 1.475 GB, free: 81.61 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006806/4.55, allocations: 2.455 MB / 1.477 GB, free: 81.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009363/4.559, allocations: 2.063 MB / 1.479 GB, free: 81.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03307/4.592, allocations: 28.99 MB / 1.507 GB, free: 67.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009647/4.602, allocations: 0.5334 MB / 1.508 GB, free: 67.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002588/4.605, allocations: 453.4 kB / 1.508 GB, free: 67.1 MB / 0.5417 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.01761/4.622, allocations: 6.742 MB / 1.515 GB, free: 63.98 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003301/4.626, allocations: 0.7696 MB / 1.516 GB, free: 63.57 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03773/4.663, allocations: 13.34 MB / 1.529 GB, free: 57.92 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02084/4.684, allocations: 8.311 MB / 1.537 GB, free: 54.68 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001283/4.685, allocations: 26.56 kB / 1.537 GB, free: 54.68 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001658/4.685, allocations: 43.86 kB / 1.537 GB, free: 54.68 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07985/4.765, allocations: 28.51 MB / 1.565 GB, free: 32.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.086e-05/4.765, allocations: 0 / 1.565 GB, free: 32.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005954/4.771, allocations: 1.145 MB / 1.566 GB, free: 32.03 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006797/4.777, allocations: 2.508 MB / 1.568 GB, free: 30.12 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00185/4.779, allocations: 161.2 kB / 1.569 GB, free: 29.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.478/5.257, allocations: 33.53 MB / 1.601 GB, free: 77.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/5.257, allocations: 5.844 kB / 1.601 GB, free: 77.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03232/5.29, allocations: 19.73 MB / 1.621 GB, free: 75.62 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006549/5.296, allocations: 1.795 MB / 1.622 GB, free: 75.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002601/5.299, allocations: 127.3 kB / 1.622 GB, free: 75.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005178/5.304, allocations: 423.9 kB / 1.623 GB, free: 75.53 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001402/5.306, allocations: 0.5464 MB / 1.623 GB, free: 75.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000482/5.306, allocations: 199.6 kB / 1.624 GB, free: 75.52 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.008264/5.314, allocations: 4.657 MB / 1.628 GB, free: 75.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.1e-07/5.314, allocations: 3.156 kB / 1.628 GB, free: 75.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01561/5.33, allocations: 3.111 MB / 1.631 GB, free: 75.3 MB / 0.5417 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.03265/5.363, allocations: 21.49 MB / 1.652 GB, free: 72.36 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02589/5.389, allocations: 13.51 MB / 1.665 GB, free: 71 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/5.389, allocations: 3.406 kB / 1.665 GB, free: 71 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01533/5.404, allocations: 7.71 MB / 1.673 GB, free: 69.58 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0117/5.416, allocations: 1.957 MB / 1.675 GB, free: 69.55 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6325/6.048, allocations: 171.9 MB / 1.843 GB, free: 99.29 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02601/6.074, allocations: 11.66 MB / 1.854 GB, free: 98.17 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01293/6.087, allocations: 3.279 MB / 1.857 GB, free: 98.09 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01425/6.102, allocations: 6.662 MB / 1.864 GB, free: 98.09 MB / 0.573 GB Notification: Performance of SimCode: time 8.12e-07/6.102, allocations: 2.625 kB / 1.864 GB, free: 98.09 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7932/6.895, allocations: 242.9 MB / 2.101 GB, free: 93.17 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001526/6.895, allocations: 257.2 kB / 2.101 GB, free: 92.84 MB / 0.573 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_IMS_Start.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.c:7: In file included from ./Modelica_4_0_0_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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_functions.h:1374: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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_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: *** [: Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.o] Error 1