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.IMC_Conveyor.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.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",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.001179/0.001179, allocations: 179.3 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.401/1.401, 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.0009171/0.0009169, allocations: 99.78 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003257, allocations: 4 kB / 351.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2827, allocations: 50.4 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4352/0.7179, allocations: 152.8 MB / 0.5414 GB, free: 46.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.7182, allocations: 111.9 kB / 0.5415 GB, free: 46.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.27/1.988, allocations: 356.3 MB / 0.8895 GB, free: 47.1 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.988, allocations: 0 / 0.8895 GB, free: 47.1 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008828/1.989, allocations: 260.7 kB / 0.8897 GB, free: 47.07 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3019 * Number of variables: 3019 Notification: Performance of Generate backend data structure: time 0.039/2.028, allocations: 11.06 MB / 0.9005 GB, free: 43.41 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/2.028, allocations: 12.09 kB / 0.9005 GB, free: 43.4 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008483/2.037, allocations: 1.551 MB / 0.9021 GB, free: 43.29 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02762/2.065, allocations: 4.783 MB / 0.9067 GB, free: 42.67 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02582/2.09, allocations: 9.594 MB / 0.9161 GB, free: 41.54 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009886/2.091, allocations: 0.7933 MB / 0.9169 GB, free: 41.52 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005294/2.097, allocations: 1.049 MB / 0.9179 GB, free: 41.51 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04739/2.144, allocations: 17.19 MB / 0.9347 GB, free: 40.29 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006084/2.145, allocations: 18.16 kB / 0.9347 GB, free: 40.29 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004846/2.15, allocations: 454.2 kB / 0.9351 GB, free: 40.29 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001083/2.151, allocations: 0.7644 MB / 0.9359 GB, free: 40.26 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0355/2.186, allocations: 15.43 MB / 0.951 GB, free: 36.5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1243/2.311, allocations: 55.63 MB / 1.005 GB, free: 14.66 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3706/2.681, allocations: 33.31 MB / 1.038 GB, free: 33.88 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0214/2.703, allocations: 10.5 MB / 1.048 GB, free: 33.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004266/2.707, allocations: 3.145 MB / 1.051 GB, free: 33.05 MB / 490.7 MB Notification: Performance of pre-optimization done (n=444): time 5.22e-06/2.707, allocations: 0 / 1.051 GB, free: 33.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=462): time 0.05185/2.759, allocations: 23.52 MB / 1.074 GB, free: 30.29 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/2.759, allocations: 406.1 kB / 1.074 GB, free: 29.84 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007385/2.767, allocations: 4.007 MB / 1.078 GB, free: 29.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001462/2.768, allocations: 104.7 kB / 1.079 GB, free: 29.48 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005456/2.774, allocations: 4.742 MB / 1.083 GB, free: 27.16 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002281/2.776, allocations: 1.575 MB / 1.085 GB, free: 26.17 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004811/2.776, allocations: 125.2 kB / 1.085 GB, free: 26.17 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003819/2.777, allocations: 0.5436 MB / 1.085 GB, free: 25.85 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004371/2.781, allocations: 2.864 MB / 1.088 GB, free: 25.84 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005902/2.787, allocations: 5.013 MB / 1.093 GB, free: 23.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006367/2.793, allocations: 3.909 MB / 1.097 GB, free: 23.29 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.648e-05/2.794, allocations: 16.47 kB / 1.097 GB, free: 23.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.01778/2.811, allocations: 9.65 MB / 1.106 GB, free: 22.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.202e-05/2.811, allocations: 29.84 kB / 1.106 GB, free: 22.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001303/2.812, allocations: 64.72 kB / 1.106 GB, free: 22.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003903/2.816, allocations: 1.5 MB / 1.108 GB, free: 22.67 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005665/2.821, allocations: 1.345 MB / 1.109 GB, free: 22.67 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01791/2.839, allocations: 16.71 MB / 1.125 GB, free: 12.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006484/2.846, allocations: 361.8 kB / 1.126 GB, free: 12.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001358/2.847, allocations: 282.6 kB / 1.126 GB, free: 12.73 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 295 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (696): * Single equations (assignments): 690 * 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: 5 * 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: 5 {(1,100.0%) 5,(1,100.0%) 4,(1,100.0%) 13,(1,100.0%) 4,(14,38.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009796/2.857, allocations: 3.924 MB / 1.13 GB, free: 10.81 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001862/2.859, allocations: 0.5031 MB / 1.13 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01409/2.873, allocations: 8.071 MB / 1.138 GB, free: 7.125 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.535e-05/2.873, allocations: 48 kB / 1.138 GB, free: 7.125 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.153e-05/2.873, allocations: 17.41 kB / 1.138 GB, free: 7.125 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.576e-05/2.873, allocations: 28.53 kB / 1.138 GB, free: 7.125 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03373/2.907, allocations: 17.79 MB / 1.156 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/2.907, allocations: 3.375 kB / 1.156 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003539/2.91, allocations: 0.7762 MB / 1.157 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004338/2.915, allocations: 1.568 MB / 1.158 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007368/2.915, allocations: 119.2 kB / 1.158 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02355/2.939, allocations: 20.05 MB / 1.178 GB, free: 0.8281 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/2.939, allocations: 9.406 kB / 1.178 GB, free: 0.8281 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01987/2.959, allocations: 12.15 MB / 1.19 GB, free: 7.945 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004215/2.963, allocations: 1.176 MB / 1.191 GB, free: 6.875 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001626/2.965, allocations: 99.56 kB / 1.191 GB, free: 6.781 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003083/2.968, allocations: 250.2 kB / 1.191 GB, free: 6.598 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001042/2.969, allocations: 340.3 kB / 1.191 GB, free: 6.387 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003205/2.969, allocations: 141.7 kB / 1.192 GB, free: 6.258 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005589/2.975, allocations: 3.052 MB / 1.195 GB, free: 3.703 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/2.975, allocations: 2.406 kB / 1.195 GB, free: 3.703 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009337/2.984, allocations: 1.949 MB / 1.196 GB, free: 1.766 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,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,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (407): * Single equations (assignments): 398 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(1,100.0%) 3,(14,38.8%) 44,(1,100.0%) 13,(1,100.0%) 3,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02326/3.008, allocations: 14.43 MB / 1.211 GB, free: 5.055 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.3533/3.361, allocations: 8.196 MB / 1.219 GB, free: 102 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/3.361, allocations: 3.594 kB / 1.219 GB, free: 102 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009034/3.37, allocations: 4.76 MB / 1.223 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006972/3.377, allocations: 1.204 MB / 1.224 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1487/3.526, allocations: 102.8 MB / 1.325 GB, free: 33.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0114/3.537, allocations: 7.024 MB / 1.332 GB, free: 32.75 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008387/3.546, allocations: 1.877 MB / 1.333 GB, free: 32.57 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009751/3.555, allocations: 4.06 MB / 1.337 GB, free: 32.56 MB / 0.5261 GB Notification: Performance of SimCode: time 1.834e-06/3.556, allocations: 0 / 1.337 GB, free: 32.56 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5913/4.147, allocations: 153.2 MB / 1.487 GB, free: 87.83 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002711/4.147, allocations: 302.2 kB / 1.487 GB, free: 87.47 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_InductionMachines_IMC_Conveyor.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_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_IMC_Conveyor.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_functions.h:1244: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); ^ 2 warnings and 1 error generated. make: *** [: Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.o] Error 1