Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 201.8 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009348/0.0009349, allocations: 103.5 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4498/0.4498, allocations: 45.22 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002868/0.0002868, allocations: 4 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6018/0.6021, allocations: 63.26 MB / 0.5193 GB, free: 43.82 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1831/0.7853, allocations: 103.6 MB / 0.6205 GB, free: 1.957 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.7856, allocations: 95.91 kB / 0.6206 GB, free: 1.867 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09499/0.8806, allocations: 40.53 MB / 0.6602 GB, free: 8.914 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.8807, allocations: 0 / 0.6602 GB, free: 8.914 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.803e-05/0.8807, allocations: 23.94 kB / 0.6602 GB, free: 8.891 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: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.006282/0.887, allocations: 1.757 MB / 0.6619 GB, free: 7.082 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.8871, allocations: 8.031 kB / 0.6619 GB, free: 7.074 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006313/0.8877, allocations: 194.5 kB / 0.6621 GB, free: 6.875 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006521/0.8943, allocations: 0.9896 MB / 0.6631 GB, free: 5.883 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.8962, allocations: 0.5963 MB / 0.6636 GB, free: 5.242 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.8964, allocations: 106.6 kB / 0.6637 GB, free: 5.137 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005578/0.8969, allocations: 128 kB / 0.6639 GB, free: 5.012 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004059/0.901, allocations: 1.471 MB / 0.6653 GB, free: 3.492 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.955e-05/0.9011, allocations: 3.906 kB / 0.6653 GB, free: 3.488 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001839/0.9013, allocations: 59.94 kB / 0.6654 GB, free: 3.43 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.764e-05/0.9014, allocations: 36 kB / 0.6654 GB, free: 3.395 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003276/0.9047, allocations: 1.529 MB / 0.6669 GB, free: 1.859 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0116/0.9163, allocations: 5.71 MB / 0.6725 GB, free: 11.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002869/0.9192, allocations: 2.193 MB / 0.6746 GB, free: 9.406 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002625/0.9195, allocations: 187.2 kB / 0.6748 GB, free: 9.188 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.08e-05/0.9195, allocations: 51.56 kB / 0.6748 GB, free: 9.129 MB / 490.7 MB Notification: Performance of pre-optimization done (n=127): time 5.169e-06/0.9196, allocations: 0 / 0.6748 GB, free: 9.129 MB / 490.7 MB Notification: Performance of matching and sorting (n=127): time 0.008821/0.9284, allocations: 3.028 MB / 0.6778 GB, free: 6.074 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.131e-05/0.9285, allocations: 90.11 kB / 0.6779 GB, free: 5.965 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006205/0.9291, allocations: 405 kB / 0.6783 GB, free: 5.559 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.71e-05/0.9292, allocations: 49.7 kB / 0.6783 GB, free: 5.504 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003208/0.9295, allocations: 455.6 kB / 0.6787 GB, free: 5.051 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004446/0.93, allocations: 421.8 kB / 0.6791 GB, free: 4.633 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.94e-05/0.9301, allocations: 20 kB / 0.6792 GB, free: 4.613 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.9303, allocations: 382.8 kB / 0.6795 GB, free: 4.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008616/0.9311, allocations: 454.5 kB / 0.68 GB, free: 3.789 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009939/0.9321, allocations: 0.6736 MB / 0.6806 GB, free: 3.035 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000964/0.9331, allocations: 0.5098 MB / 0.6811 GB, free: 2.531 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.759e-06/0.9331, allocations: 4 kB / 0.6811 GB, free: 2.527 MB / 490.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002882/0.936, allocations: 1.539 MB / 0.6826 GB, free: 0.9805 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.9361, allocations: 8 kB / 0.6826 GB, free: 0.9727 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/0.9361, allocations: 8 kB / 0.6826 GB, free: 0.9648 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001576/0.9377, allocations: 0.5202 MB / 0.6831 GB, free: 452 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008322/0.9385, allocations: 191.7 kB / 0.6833 GB, free: 260 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007314/0.9459, allocations: 4.417 MB / 0.6876 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009348/0.9468, allocations: 122.8 kB / 0.6878 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.947, allocations: 47.98 kB / 0.6878 GB, free: 11.53 MB / 0.4948 GB 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.0007025/0.9477, allocations: 269.5 kB / 0.6881 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002735/0.948, allocations: 90.91 kB / 0.6881 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.9514, allocations: 1.63 MB / 0.6897 GB, free: 9.516 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/0.9514, allocations: 12 kB / 0.6898 GB, free: 9.504 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.9514, allocations: 4 kB / 0.6898 GB, free: 9.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.9514, allocations: 7.969 kB / 0.6898 GB, free: 9.492 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00533/0.9568, allocations: 2.867 MB / 0.6926 GB, free: 6.555 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.9568, allocations: 7.938 kB / 0.6926 GB, free: 6.547 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006732/0.9575, allocations: 151.8 kB / 0.6927 GB, free: 6.398 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/0.959, allocations: 0.5028 MB / 0.6932 GB, free: 5.898 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.9591, allocations: 28 kB / 0.6932 GB, free: 5.871 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00701/0.9661, allocations: 4.403 MB / 0.6975 GB, free: 1.328 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.9661, allocations: 7.953 kB / 0.6975 GB, free: 1.32 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3372/1.303, allocations: 2.302 MB / 0.6998 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005602/1.304, allocations: 285.3 kB / 0.7001 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/1.304, allocations: 27.64 kB / 0.7001 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006183/1.305, allocations: 58 kB / 0.7001 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/1.305, allocations: 100.7 kB / 0.7002 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-05/1.305, allocations: 34.25 kB / 0.7003 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003993/1.305, allocations: 312 kB / 0.7006 GB, free: 111 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/1.305, allocations: 0.6875 kB / 0.7006 GB, free: 111 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001392/1.307, allocations: 418.8 kB / 0.701 GB, free: 111 MB / 0.4948 GB 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.004038/1.311, allocations: 3.064 MB / 0.704 GB, free: 110.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003544/1.314, allocations: 1.751 MB / 0.7057 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/1.315, allocations: 0 / 0.7057 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002274/1.317, allocations: 1.171 MB / 0.7068 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000755/1.318, allocations: 88.59 kB / 0.7069 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/1.33, allocations: 10.59 MB / 0.7172 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006818/1.331, allocations: 1.099 MB / 0.7183 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0005666/1.331, allocations: 109.4 kB / 0.7184 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004471/1.332, allocations: 389.9 kB / 0.7188 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of SimCode: time 7.31e-07/1.332, allocations: 0 / 0.7188 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05311/1.385, allocations: 23.7 MB / 0.7419 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/1.385, allocations: 232.7 kB / 0.7422 GB, free: 101.5 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_Ideal.o ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.c In file included from ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.c:7: In file included from ./ModelicaTest_trunk_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_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.c:7: In file included from ./ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_model.h:24: ./ModelicaTest_trunk_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_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.o] Error 1