Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.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.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",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.0009994/0.0009995, allocations: 181.3 kB / 16.39 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.345/1.345, allocations: 223.2 MB / 240.3 MB, free: 10.17 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.0008413/0.0008412, allocations: 83.95 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003443, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2527, allocations: 50.4 MB / 401.6 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1048/0.3576, allocations: 82.82 MB / 484.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.3579, allocations: 87.95 kB / 484.5 MB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03888/0.3968, allocations: 15.55 MB / 0.4883 GB, free: 13.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3968, allocations: 0 / 0.4883 GB, free: 13.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.3969, allocations: 12 kB / 0.4883 GB, free: 13.7 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.001799/0.3987, allocations: 0.7493 MB / 0.4891 GB, free: 12.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.3987, allocations: 8.031 kB / 0.4891 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001645/0.3989, allocations: 107.7 kB / 0.4892 GB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002318/0.4012, allocations: 367 kB / 0.4895 GB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004565/0.4017, allocations: 298.4 kB / 0.4898 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.042e-05/0.4018, allocations: 41.31 kB / 0.4898 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.751e-05/0.4019, allocations: 52 kB / 0.4899 GB, free: 12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000929/0.4028, allocations: 0.5102 MB / 0.4904 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.4028, allocations: 11.84 kB / 0.4904 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.275e-05/0.4029, allocations: 20 kB / 0.4904 GB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.4029, allocations: 15.95 kB / 0.4904 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.404, allocations: 0.5751 MB / 0.491 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003093/0.4071, allocations: 1.889 MB / 0.4928 GB, free: 8.852 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002746/0.4098, allocations: 2.198 MB / 0.495 GB, free: 6.266 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.41, allocations: 85.55 kB / 0.4951 GB, free: 6.164 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.41, allocations: 35 kB / 0.4951 GB, free: 6.121 MB / 378.7 MB Notification: Performance of pre-optimization done (n=47): time 2.544e-06/0.41, allocations: 0 / 0.4951 GB, free: 6.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.001983/0.412, allocations: 0.7899 MB / 0.4959 GB, free: 5.301 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.4121, allocations: 59.8 kB / 0.4959 GB, free: 5.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/0.4123, allocations: 169.9 kB / 0.4961 GB, free: 5.059 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.4124, allocations: 37.7 kB / 0.4961 GB, free: 5.016 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.4125, allocations: 220.4 kB / 0.4963 GB, free: 4.793 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.4127, allocations: 161.6 kB / 0.4965 GB, free: 4.633 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.225e-05/0.4127, allocations: 12 kB / 0.4965 GB, free: 4.621 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.4129, allocations: 334.8 kB / 0.4968 GB, free: 4.285 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002982/0.4132, allocations: 149.1 kB / 0.497 GB, free: 4.141 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000371/0.4136, allocations: 240.8 kB / 0.4972 GB, free: 3.883 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003623/0.4139, allocations: 176.8 kB / 0.4974 GB, free: 3.715 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4139, allocations: 4 kB / 0.4974 GB, free: 3.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001029/0.415, allocations: 0.5357 MB / 0.4979 GB, free: 3.164 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.415, allocations: 8 kB / 0.4979 GB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.415, allocations: 0 / 0.4979 GB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003557/0.4154, allocations: 96.8 kB / 0.498 GB, free: 3.059 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/0.4158, allocations: 95.83 kB / 0.4981 GB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002083/0.4179, allocations: 1.858 MB / 0.4999 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002991/0.4182, allocations: 55.58 kB / 0.5 GB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.282e-05/0.4183, allocations: 19.94 kB / 0.5 GB, free: 0.8984 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002579/0.4185, allocations: 166.3 kB / 0.5001 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.896e-05/0.4186, allocations: 27.7 kB / 0.5002 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.4197, allocations: 0.5434 MB / 0.5007 GB, free: 148 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.4197, allocations: 12.14 kB / 0.5007 GB, free: 136 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.4197, allocations: 0 / 0.5007 GB, free: 136 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.4197, allocations: 7.922 kB / 0.5007 GB, free: 128 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1845/0.6043, allocations: 1.12 MB / 0.5018 GB, free: 94.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.6043, allocations: 1.688 kB / 0.5018 GB, free: 94.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000382/0.6047, allocations: 72.84 kB / 0.5019 GB, free: 94.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003093/0.6051, allocations: 90.44 kB / 0.502 GB, free: 94.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.6051, allocations: 11.25 kB / 0.502 GB, free: 94.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001851/0.607, allocations: 1.861 MB / 0.5038 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.607, allocations: 0 / 0.5038 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.6084, allocations: 0.8005 MB / 0.5046 GB, free: 92.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.338e-05/0.6085, allocations: 108.9 kB / 0.5047 GB, free: 92.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.796e-05/0.6085, allocations: 10 kB / 0.5047 GB, free: 92.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.6088, allocations: 21.8 kB / 0.5047 GB, free: 92.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.485e-05/0.6089, allocations: 41 kB / 0.5047 GB, free: 92.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.6089, allocations: 13.92 kB / 0.5048 GB, free: 92.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001091/0.609, allocations: 132.4 kB / 0.5049 GB, free: 92.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.609, allocations: 0 / 0.5049 GB, free: 92.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007322/0.6098, allocations: 162.8 kB / 0.505 GB, free: 92.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (capacitor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001836/0.6116, allocations: 1.388 MB / 0.5064 GB, free: 91.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.6129, allocations: 0.5744 MB / 0.5069 GB, free: 91.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.6129, allocations: 0.75 kB / 0.507 GB, free: 91.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004474/0.6134, allocations: 386.8 kB / 0.5073 GB, free: 91.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.6137, allocations: 22.8 kB / 0.5073 GB, free: 91.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.6164, allocations: 3.197 MB / 0.5105 GB, free: 89.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.6166, allocations: 0.8203 MB / 0.5113 GB, free: 89.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001991/0.6168, allocations: 43.8 kB / 0.5113 GB, free: 89.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001578/0.617, allocations: 131.8 kB / 0.5114 GB, free: 89.09 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.617, allocations: 0 / 0.5114 GB, free: 89.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01897/0.636, allocations: 6.812 MB / 0.5181 GB, free: 88.71 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001675/0.6362, allocations: 219.8 kB / 0.5183 GB, free: 88.48 MB / 378.7 MB 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_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.o Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.c In file included from Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.c:7: In file included from ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance_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_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.c:7: In file included from ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance_model.h:24: ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance_functions.h:248:1: error: unknown type name '_omcQComplexOutput_24currentSensor_24i' _omcQComplexOutput_24currentSensor_24i omc__omcQComplexOutput_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_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.o] Error 1