Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 198.7 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.2 MB / 245 MB, free: 7.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.00105, allocations: 101.8 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4445/0.4445, allocations: 45.23 MB / 394.7 MB, free: 31.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003034, allocations: 8.219 kB / 468.5 MB, free: 7.668 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4639/0.4643, allocations: 63.25 MB / 0.5193 GB, free: 43.4 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1535/0.6178, allocations: 101.4 MB / 0.6183 GB, free: 4.238 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/0.6182, allocations: 87.92 kB / 0.6183 GB, free: 4.156 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0911/0.7094, allocations: 37.58 MB / 0.655 GB, free: 14.21 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.7094, allocations: 0 / 0.655 GB, free: 14.21 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.122e-05/0.7095, allocations: 20 kB / 0.6551 GB, free: 14.19 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: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.003451/0.7129, allocations: 1.386 MB / 0.6564 GB, free: 12.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.713, allocations: 8.031 kB / 0.6564 GB, free: 12.74 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002677/0.7133, allocations: 194.5 kB / 0.6566 GB, free: 12.54 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006358/0.7196, allocations: 0.9586 MB / 0.6576 GB, free: 11.58 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.7208, allocations: 0.57 MB / 0.6581 GB, free: 10.97 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.759e-05/0.7209, allocations: 102.7 kB / 0.6582 GB, free: 10.87 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/0.7211, allocations: 131.9 kB / 0.6583 GB, free: 10.74 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/0.7234, allocations: 1.222 MB / 0.6595 GB, free: 9.496 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.075e-05/0.7234, allocations: 0 / 0.6595 GB, free: 9.496 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001301/0.7236, allocations: 59.98 kB / 0.6596 GB, free: 9.438 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-05/0.7236, allocations: 32 kB / 0.6596 GB, free: 9.406 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002396/0.726, allocations: 1.463 MB / 0.661 GB, free: 7.938 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008724/0.7347, allocations: 5.89 MB / 0.6668 GB, free: 1.559 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.7365, allocations: 0.9316 MB / 0.6677 GB, free: 0.5977 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001856/0.7368, allocations: 187.2 kB / 0.6679 GB, free: 388 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.7368, allocations: 43.56 kB / 0.6679 GB, free: 336 kB / 474.7 MB Notification: Performance of pre-optimization done (n=90): time 2.986e-06/0.7368, allocations: 0 / 0.6679 GB, free: 336 kB / 474.7 MB Notification: Performance of matching and sorting (n=90): time 0.002228/0.739, allocations: 1.196 MB / 0.6691 GB, free: 15.08 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.7391, allocations: 68.41 kB / 0.6692 GB, free: 15 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009624/0.7401, allocations: 0.7418 MB / 0.6699 GB, free: 14.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.135e-05/0.7402, allocations: 41.7 kB / 0.6699 GB, free: 14.21 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003788/0.7405, allocations: 0.4946 MB / 0.6704 GB, free: 13.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002877/0.7408, allocations: 307.5 kB / 0.6707 GB, free: 13.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.295e-05/0.7409, allocations: 27.94 kB / 0.6707 GB, free: 13.37 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002307/0.7411, allocations: 394.7 kB / 0.6711 GB, free: 12.98 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006483/0.7418, allocations: 350.5 kB / 0.6714 GB, free: 12.63 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007521/0.7426, allocations: 0.6047 MB / 0.672 GB, free: 11.92 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007201/0.7433, allocations: 434.8 kB / 0.6724 GB, free: 11.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.7433, allocations: 4 kB / 0.6724 GB, free: 11.49 MB / 490.7 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.001959/0.7453, allocations: 1.174 MB / 0.6736 GB, free: 10.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.7453, allocations: 8 kB / 0.6736 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.7453, allocations: 8 kB / 0.6736 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003262/0.7457, allocations: 69.67 kB / 0.6737 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.7467, allocations: 263.7 kB / 0.6739 GB, free: 9.953 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002395/0.7491, allocations: 2.639 MB / 0.6765 GB, free: 7.043 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009719/0.7501, allocations: 154.2 kB / 0.6766 GB, free: 6.891 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.377e-05/0.7502, allocations: 47.98 kB / 0.6767 GB, free: 6.844 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 139 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005256/0.7508, allocations: 265.4 kB / 0.6769 GB, free: 6.574 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.7509, allocations: 90.88 kB / 0.677 GB, free: 6.484 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00191/0.7528, allocations: 1.114 MB / 0.6781 GB, free: 5.336 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.7529, allocations: 8 kB / 0.6781 GB, free: 5.328 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.7529, allocations: 0 / 0.6781 GB, free: 5.328 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.7529, allocations: 11.94 kB / 0.6781 GB, free: 5.316 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004187/0.7571, allocations: 3.13 MB / 0.6812 GB, free: 1.859 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.7571, allocations: 8 kB / 0.6812 GB, free: 1.852 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007361/0.7579, allocations: 179.7 kB / 0.6814 GB, free: 1.676 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002296/0.7581, allocations: 70.36 kB / 0.6814 GB, free: 1.602 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.492e-05/0.7582, allocations: 24 kB / 0.6815 GB, free: 1.578 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002105/0.7603, allocations: 2.639 MB / 0.684 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/0.7603, allocations: 12 kB / 0.6841 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002453/0.7628, allocations: 1.767 MB / 0.6858 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003641/0.7631, allocations: 219.6 kB / 0.686 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.7633, allocations: 24 kB / 0.686 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006476/0.7639, allocations: 60.03 kB / 0.6861 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.7641, allocations: 84.31 kB / 0.6861 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.356e-05/0.7641, allocations: 35.92 kB / 0.6862 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0007709/0.7649, allocations: 0.5771 MB / 0.6867 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7649, allocations: 0 / 0.6867 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00111/0.766, allocations: 319.5 kB / 0.6871 GB, free: 11.32 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (currentRMSSensor.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 (93): * Single equations (assignments): 91 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003683/0.7697, allocations: 4.111 MB / 0.6911 GB, free: 7.012 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002041/0.7718, allocations: 1.083 MB / 0.6921 GB, free: 5.902 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/0.7718, allocations: 4 kB / 0.6921 GB, free: 5.898 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008871/0.7727, allocations: 0.6266 MB / 0.6927 GB, free: 5.25 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006681/0.7734, allocations: 120.7 kB / 0.6929 GB, free: 5.133 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3008/1.074, allocations: 11.17 MB / 0.7038 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006088/1.075, allocations: 1.034 MB / 0.7048 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0008198/1.076, allocations: 153.2 kB / 0.7049 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005661/1.076, allocations: 382.7 kB / 0.7053 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.193e-06/1.076, allocations: 0 / 0.7053 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04521/1.121, allocations: 18.13 MB / 0.723 GB, free: 108.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/1.122, allocations: 221.8 kB / 0.7232 GB, free: 108.1 MB / 0.4948 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_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.o ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.c In file included from ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.c:7: In file included from ./ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection_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_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.c:7: In file included from ./ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection_model.h:24: ./ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection_functions.h:304:1: error: unknown type name '_omcQComplexOutput_24voltageSensor_24v' _omcQComplexOutput_24voltageSensor_24v omc__omcQComplexOutput_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 1 error generated. make: *** [: ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.o] Error 1