Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.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.Polyphase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_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.001891/0.001891, allocations: 181 kB / 17.06 MB, free: 5.094 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.713/1.713, allocations: 223.2 MB / 241 MB, free: 11.9 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.000886/0.0008861, allocations: 95.09 kB / 292.1 MB, free: 10.93 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.3874/0.3874, allocations: 44.22 MB / 387.5 MB, free: 38.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003498, allocations: 8 kB / 460 MB, free: 1.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3482, allocations: 61.89 MB / 0.5096 GB, free: 38.1 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1543/0.5025, allocations: 115.9 MB / 0.6229 GB, free: 11.14 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5028, allocations: 91.92 kB / 0.6229 GB, free: 11.05 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.403/2.906, allocations: 469.9 MB / 1.082 GB, free: 40.12 MB / 0.5262 GB Notification: Performance of FrontEnd: time 2.655e-06/2.906, allocations: 0 / 1.082 GB, free: 40.12 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 0.001362/2.908, allocations: 301.3 kB / 1.082 GB, free: 40.12 MB / 0.5262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3858 * Number of variables: 3858 Notification: Performance of Generate backend data structure: time 0.05877/2.967, allocations: 13.94 MB / 1.096 GB, free: 36.72 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/2.967, allocations: 8.25 kB / 1.096 GB, free: 36.72 MB / 0.5262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01161/2.978, allocations: 2.003 MB / 1.098 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04556/3.024, allocations: 7.909 MB / 1.105 GB, free: 35.84 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0285/3.052, allocations: 9.09 MB / 1.114 GB, free: 34.76 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001832/3.054, allocations: 0.9916 MB / 1.115 GB, free: 34.73 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00978/3.064, allocations: 1.29 MB / 1.117 GB, free: 34.72 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08047/3.145, allocations: 23.23 MB / 1.139 GB, free: 33.09 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007676/3.145, allocations: 24.88 kB / 1.139 GB, free: 33.08 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0065/3.152, allocations: 0.5565 MB / 1.14 GB, free: 33.08 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001708/3.154, allocations: 1.026 MB / 1.141 GB, free: 33.05 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05192/3.206, allocations: 20.02 MB / 1.16 GB, free: 32.92 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1618/3.367, allocations: 72.2 MB / 1.231 GB, free: 0.6992 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03494/3.402, allocations: 28.84 MB / 1.259 GB, free: 6.098 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0438/3.446, allocations: 15.84 MB / 1.274 GB, free: 9.227 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.864e-05/3.446, allocations: 89.08 kB / 1.275 GB, free: 9.137 MB / 0.573 GB Notification: Performance of pre-optimization done (n=465): time 6.543e-06/3.447, allocations: 0 / 1.275 GB, free: 9.137 MB / 0.573 GB Notification: Performance of matching and sorting (n=465): time 0.5361/3.983, allocations: 16.58 MB / 1.291 GB, free: 86.97 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.404e-05/3.983, allocations: 126.1 kB / 1.291 GB, free: 86.87 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01083/3.994, allocations: 4.556 MB / 1.295 GB, free: 86.61 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001424/3.995, allocations: 97.3 kB / 1.295 GB, free: 86.57 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005334/4, allocations: 5.859 MB / 1.301 GB, free: 84.52 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003094/4.004, allocations: 1.585 MB / 1.303 GB, free: 83.54 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007988/4.004, allocations: 143.6 kB / 1.303 GB, free: 83.54 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0006269/4.005, allocations: 0.6113 MB / 1.303 GB, free: 83.23 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008253/4.013, allocations: 4.119 MB / 1.307 GB, free: 83.21 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01048/4.024, allocations: 7.134 MB / 1.314 GB, free: 79.52 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01184/4.036, allocations: 5.565 MB / 1.32 GB, free: 79.47 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002569/4.036, allocations: 28.91 kB / 1.32 GB, free: 79.47 MB / 0.573 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.03023/4.066, allocations: 13.01 MB / 1.333 GB, free: 79.04 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000203/4.066, allocations: 52.23 kB / 1.333 GB, free: 79.04 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003767/4.067, allocations: 101.1 kB / 1.333 GB, free: 79.04 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009437/4.076, allocations: 3.098 MB / 1.336 GB, free: 78.99 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007941/4.084, allocations: 1.574 MB / 1.337 GB, free: 78.99 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009568/4.094, allocations: 6.458 MB / 1.344 GB, free: 77.35 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00938/4.103, allocations: 1.058 MB / 1.345 GB, free: 76.91 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002849/4.106, allocations: 374.9 kB / 1.345 GB, free: 76.91 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 461 * 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,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (802): * Single equations (assignments): 799 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 28,20 28,20 28} Notification: Performance of prepare postOptimizeDAE: time 0.01522/4.121, allocations: 5.389 MB / 1.35 GB, free: 76.73 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0022/4.124, allocations: 0.4916 MB / 1.351 GB, free: 76.46 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01817/4.142, allocations: 9.639 MB / 1.36 GB, free: 76.18 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.696e-05/4.142, allocations: 51.34 kB / 1.36 GB, free: 76.18 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.481e-05/4.142, allocations: 0 / 1.36 GB, free: 76.18 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-05/4.142, allocations: 28.02 kB / 1.36 GB, free: 76.18 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04514/4.187, allocations: 20.75 MB / 1.38 GB, free: 75.34 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.896e-05/4.187, allocations: 2.906 kB / 1.38 GB, free: 75.34 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00332/4.191, allocations: 0.743 MB / 1.381 GB, free: 75.33 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006057/4.197, allocations: 2.964 MB / 1.384 GB, free: 75.27 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009089/4.198, allocations: 94.98 kB / 1.384 GB, free: 75.27 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007884/4.206, allocations: 6.25 MB / 1.39 GB, free: 73.18 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/4.206, allocations: 10.12 kB / 1.39 GB, free: 73.18 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02269/4.228, allocations: 14.17 MB / 1.404 GB, free: 67.58 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005144/4.234, allocations: 1.397 MB / 1.406 GB, free: 66.84 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002157/4.236, allocations: 84.66 kB / 1.406 GB, free: 66.78 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004586/4.24, allocations: 397.5 kB / 1.406 GB, free: 66.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001112/4.241, allocations: 311 kB / 1.406 GB, free: 66.66 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007564/4.242, allocations: 136.2 kB / 1.406 GB, free: 66.62 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.008324/4.251, allocations: 3.404 MB / 1.41 GB, free: 65.45 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.71e-07/4.251, allocations: 0 / 1.41 GB, free: 65.45 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.015/4.266, allocations: 3.184 MB / 1.413 GB, free: 64.44 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealClosingSwitch.idealClosingSwitch[1].pin_p.reference.gamma) * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 354 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 28,20 28,20 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.02584/4.292, allocations: 14.95 MB / 1.427 GB, free: 57.6 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01962/4.311, allocations: 10.12 MB / 1.437 GB, free: 49.32 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/4.311, allocations: 1.938 kB / 1.437 GB, free: 49.32 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01059/4.322, allocations: 4.726 MB / 1.442 GB, free: 45.38 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008505/4.33, allocations: 1.159 MB / 1.443 GB, free: 44.49 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6125/4.943, allocations: 137.9 MB / 1.578 GB, free: 39.77 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02619/4.969, allocations: 9.244 MB / 1.587 GB, free: 38.79 MB / 0.5887 GB Notification: Performance of simCode: alias equations: time 0.01277/4.982, allocations: 2.846 MB / 1.589 GB, free: 38.71 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01109/4.993, allocations: 4.65 MB / 1.594 GB, free: 38.71 MB / 0.5887 GB Notification: Performance of SimCode: time 4.649e-06/4.993, allocations: 0 / 1.594 GB, free: 38.71 MB / 0.5887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.738/5.731, allocations: 171.9 MB / 1.762 GB, free: 81.79 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002171/5.732, allocations: 211.4 kB / 1.762 GB, free: 81.55 MB / 0.6043 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 ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal.o ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal.c In file included from ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal.c:7: In file included from ./ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_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_Polyphase_Ideal.c:7: In file included from ./ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal_model.h:24: ./ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal_functions.h:309:1: error: unknown type name '_omcQComplexOutput_24currentSensor_24currentSensor_24i' _omcQComplexOutput_24currentSensor_24currentSensor_24i omc__omcQComplexOutput_24currentSensor_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal_functions.h:318: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 2 errors generated. make: *** [: ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal.o] Error 1