Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",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.001056/0.001056, allocations: 176.5 kB / 17.06 MB, free: 5.098 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.325/1.325, allocations: 223.2 MB / 241 MB, free: 11.89 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.0009183/0.0009183, allocations: 94.52 kB / 292.1 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3292/0.3292, allocations: 44.22 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003353, allocations: 8 kB / 460 MB, free: 1.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4322/0.4325, allocations: 61.9 MB / 0.5096 GB, free: 37.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1754/0.608, allocations: 102.5 MB / 0.6098 GB, free: 8.547 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/0.6083, allocations: 87.91 kB / 0.6098 GB, free: 8.465 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09806/0.7064, allocations: 38.79 MB / 0.6477 GB, free: 1.215 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.7065, allocations: 3.938 kB / 0.6477 GB, free: 1.211 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.019e-05/0.7065, allocations: 20 kB / 0.6478 GB, free: 1.191 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.006069/0.7126, allocations: 1.741 MB / 0.6495 GB, free: 15.4 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.609e-05/0.7127, allocations: 8.031 kB / 0.6495 GB, free: 15.39 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000647/0.7134, allocations: 202.4 kB / 0.6497 GB, free: 15.18 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006789/0.7202, allocations: 0.9935 MB / 0.6506 GB, free: 14.19 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001474/0.7217, allocations: 0.5924 MB / 0.6512 GB, free: 13.55 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.7218, allocations: 110.5 kB / 0.6513 GB, free: 13.44 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002332/0.722, allocations: 124 kB / 0.6514 GB, free: 13.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003111/0.7251, allocations: 1.475 MB / 0.6529 GB, free: 11.8 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.096e-05/0.7252, allocations: 3.906 kB / 0.6529 GB, free: 11.79 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001523/0.7254, allocations: 56 kB / 0.6529 GB, free: 11.74 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.692e-05/0.7254, allocations: 35.98 kB / 0.653 GB, free: 11.7 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002689/0.7281, allocations: 1.525 MB / 0.6544 GB, free: 10.17 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008548/0.7367, allocations: 5.462 MB / 0.6598 GB, free: 4.449 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002454/0.7392, allocations: 2.186 MB / 0.6619 GB, free: 2.023 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00016/0.7394, allocations: 114 kB / 0.662 GB, free: 1.895 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.7394, allocations: 43.56 kB / 0.6621 GB, free: 1.844 MB / 474.7 MB Notification: Performance of pre-optimization done (n=127): time 3.947e-06/0.7394, allocations: 0 / 0.6621 GB, free: 1.844 MB / 474.7 MB Notification: Performance of matching and sorting (n=127): time 0.008525/0.7479, allocations: 3.028 MB / 0.665 GB, free: 14.79 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.748, allocations: 90.11 kB / 0.6651 GB, free: 14.68 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005898/0.7486, allocations: 409.1 kB / 0.6655 GB, free: 14.27 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.996e-05/0.7487, allocations: 45.7 kB / 0.6655 GB, free: 14.21 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000315/0.7491, allocations: 447.7 kB / 0.666 GB, free: 13.77 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003892/0.7495, allocations: 429.7 kB / 0.6664 GB, free: 13.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/0.7495, allocations: 24 kB / 0.6664 GB, free: 13.32 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.7497, allocations: 382.8 kB / 0.6668 GB, free: 12.94 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008455/0.7506, allocations: 458.4 kB / 0.6672 GB, free: 12.49 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.7516, allocations: 0.6736 MB / 0.6679 GB, free: 11.74 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009121/0.7526, allocations: 0.5098 MB / 0.6684 GB, free: 11.23 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.7526, allocations: 0 / 0.6684 GB, free: 11.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.00292/0.7555, allocations: 1.539 MB / 0.6699 GB, free: 9.688 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.7555, allocations: 12.28 kB / 0.6699 GB, free: 9.676 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.7556, allocations: 8 kB / 0.6699 GB, free: 9.668 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001615/0.7572, allocations: 0.5084 MB / 0.6704 GB, free: 9.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007791/0.758, allocations: 199.7 kB / 0.6706 GB, free: 8.965 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006909/0.7649, allocations: 4.417 MB / 0.6749 GB, free: 4.406 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009335/0.7659, allocations: 122.8 kB / 0.675 GB, free: 4.285 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.102e-05/0.766, allocations: 47.98 kB / 0.675 GB, free: 4.238 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 107 * 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: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.0005966/0.7666, allocations: 271.9 kB / 0.6753 GB, free: 3.965 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.7668, allocations: 83.06 kB / 0.6754 GB, free: 3.883 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003186/0.77, allocations: 1.645 MB / 0.677 GB, free: 2.219 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.511e-05/0.77, allocations: 16 kB / 0.677 GB, free: 2.203 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.165e-06/0.77, allocations: 0 / 0.677 GB, free: 2.203 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.77, allocations: 3.984 kB / 0.677 GB, free: 2.199 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3117/1.082, allocations: 2.86 MB / 0.6798 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.267e-05/1.082, allocations: 1.656 kB / 0.6798 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009544/1.083, allocations: 145.6 kB / 0.6799 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001672/1.084, allocations: 0.5098 MB / 0.6804 GB, free: 107.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/1.085, allocations: 30.25 kB / 0.6805 GB, free: 107.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006347/1.091, allocations: 4.403 MB / 0.6848 GB, free: 106.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.091, allocations: 2.875 kB / 0.6848 GB, free: 106.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003655/1.095, allocations: 2.31 MB / 0.687 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00049/1.095, allocations: 293.7 kB / 0.6873 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/1.095, allocations: 22.41 kB / 0.6873 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006175/1.096, allocations: 56.08 kB / 0.6874 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/1.096, allocations: 95.91 kB / 0.6875 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/1.096, allocations: 39.31 kB / 0.6875 GB, free: 105.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006051/1.097, allocations: 311 kB / 0.6878 GB, free: 105.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.097, allocations: 2.531 kB / 0.6878 GB, free: 105.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001656/1.099, allocations: 410.8 kB / 0.6882 GB, free: 105.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 83 * 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: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.00395/1.103, allocations: 3.064 MB / 0.6912 GB, free: 104.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003322/1.106, allocations: 1.756 MB / 0.6929 GB, free: 104.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/1.106, allocations: 0 / 0.6929 GB, free: 104.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002031/1.108, allocations: 1.163 MB / 0.694 GB, free: 104.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006556/1.109, allocations: 90.94 kB / 0.6941 GB, free: 104.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/1.12, allocations: 10.46 MB / 0.7043 GB, free: 98.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/1.12, allocations: 1.099 MB / 0.7054 GB, free: 97.79 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005404/1.121, allocations: 109.2 kB / 0.7055 GB, free: 97.75 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004101/1.121, allocations: 382.6 kB / 0.7059 GB, free: 97.46 MB / 490.7 MB Notification: Performance of SimCode: time 1.122e-06/1.121, allocations: 0 / 0.7059 GB, free: 97.46 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04725/1.168, allocations: 23.68 MB / 0.729 GB, free: 95.95 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/1.169, allocations: 209.6 kB / 0.7292 GB, free: 95.72 MB / 490.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 ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.o ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.c In file included from ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.c:7: In file included from ./ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_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 ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.c:7: In file included from ./ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_model.h:24: ./ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_functions.h:304: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: *** [: ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.o] Error 1