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: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 187.4 kB / 18.09 MB, free: 3.621 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.32/1.32, allocations: 223.3 MB / 242.1 MB, free: 9.949 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.0007939/0.0007939, allocations: 103.2 kB / 293.3 MB, free: 10.55 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.3922/0.3922, allocations: 44.15 MB / 388.5 MB, free: 38.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004342/0.0004343, allocations: 8 kB / 461.1 MB, free: 1.293 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3407, allocations: 61.88 MB / 0.5107 GB, free: 37.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.4732, allocations: 102.6 MB / 0.6109 GB, free: 8.449 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002984/0.4735, allocations: 87.94 kB / 0.611 GB, free: 8.367 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08921/0.5627, allocations: 38.7 MB / 0.6488 GB, free: 1.203 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5628, allocations: 0 / 0.6488 GB, free: 1.203 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.995e-05/0.5629, allocations: 31.94 kB / 0.6488 GB, free: 1.172 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.005721/0.5686, allocations: 1.722 MB / 0.6505 GB, free: 15.4 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.5686, allocations: 8.031 kB / 0.6505 GB, free: 15.39 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006425/0.5751, allocations: 0.9945 MB / 0.6515 GB, free: 14.39 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.5763, allocations: 0.6051 MB / 0.6521 GB, free: 13.75 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.5765, allocations: 107 kB / 0.6522 GB, free: 13.64 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003324/0.5768, allocations: 128.3 kB / 0.6523 GB, free: 13.52 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003493/0.5803, allocations: 1.487 MB / 0.6537 GB, free: 11.98 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.21e-05/0.5804, allocations: 3.938 kB / 0.6537 GB, free: 11.98 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.5805, allocations: 56 kB / 0.6538 GB, free: 11.92 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.624e-05/0.5806, allocations: 35.98 kB / 0.6538 GB, free: 11.89 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002902/0.5835, allocations: 1.525 MB / 0.6553 GB, free: 10.36 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008482/0.592, allocations: 5.466 MB / 0.6607 GB, free: 4.629 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/0.5944, allocations: 2.188 MB / 0.6628 GB, free: 2.203 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.5954, allocations: 0.6554 MB / 0.6634 GB, free: 1.547 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001527/0.5956, allocations: 110.1 kB / 0.6635 GB, free: 1.422 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.5956, allocations: 43.56 kB / 0.6636 GB, free: 1.371 MB / 474.7 MB Notification: Performance of pre-optimization done (n=127): time 3.417e-06/0.5957, allocations: 0 / 0.6636 GB, free: 1.371 MB / 474.7 MB Notification: Performance of matching and sorting (n=127): time 0.00827/0.6039, allocations: 3.086 MB / 0.6666 GB, free: 14.25 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.604, allocations: 94.05 kB / 0.6667 GB, free: 14.14 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005708/0.6046, allocations: 461.9 kB / 0.6671 GB, free: 13.68 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.432e-05/0.6047, allocations: 49.64 kB / 0.6672 GB, free: 13.63 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002885/0.605, allocations: 455.7 kB / 0.6676 GB, free: 13.18 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003408/0.6053, allocations: 425.8 kB / 0.668 GB, free: 12.75 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.684e-05/0.6054, allocations: 24 kB / 0.668 GB, free: 12.73 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.6056, allocations: 378.9 kB / 0.6684 GB, free: 12.35 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000831/0.6064, allocations: 458.4 kB / 0.6688 GB, free: 11.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009272/0.6073, allocations: 0.6736 MB / 0.6695 GB, free: 11.15 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001787/0.6091, allocations: 1.171 MB / 0.6706 GB, free: 9.895 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.6092, allocations: 4 kB / 0.6706 GB, free: 9.891 MB / 490.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002666/0.6118, allocations: 1.539 MB / 0.6721 GB, free: 8.348 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.6119, allocations: 8 kB / 0.6722 GB, free: 8.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.6119, allocations: 8 kB / 0.6722 GB, free: 8.332 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/0.6133, allocations: 0.5124 MB / 0.6727 GB, free: 7.816 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007269/0.614, allocations: 191.7 kB / 0.6728 GB, free: 7.629 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006426/0.6205, allocations: 4.279 MB / 0.677 GB, free: 3.211 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00073/0.6212, allocations: 130.8 kB / 0.6771 GB, free: 3.082 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.177e-05/0.6213, allocations: 44 kB / 0.6772 GB, free: 3.039 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.0005334/0.6218, allocations: 270 kB / 0.6774 GB, free: 2.766 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.622, allocations: 86.91 kB / 0.6775 GB, free: 2.68 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002867/0.6249, allocations: 1.63 MB / 0.6791 GB, free: 1.039 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.6249, allocations: 16 kB / 0.6791 GB, free: 1.023 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.6249, allocations: 4 kB / 0.6791 GB, free: 1.02 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.6249, allocations: 7.969 kB / 0.6791 GB, free: 1.012 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2288/0.8538, allocations: 2.874 MB / 0.682 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.8538, allocations: 3 kB / 0.682 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005859/0.8544, allocations: 147 kB / 0.6821 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001174/0.8556, allocations: 0.5015 MB / 0.6826 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.234e-05/0.8557, allocations: 27.84 kB / 0.6826 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005033/0.8607, allocations: 4.266 MB / 0.6868 GB, free: 106.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.8607, allocations: 7.156 kB / 0.6868 GB, free: 106.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003141/0.8639, allocations: 2.284 MB / 0.689 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003411/0.8642, allocations: 284.5 kB / 0.6893 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.017e-05/0.8643, allocations: 23.72 kB / 0.6893 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005187/0.8648, allocations: 57.84 kB / 0.6894 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.865, allocations: 99.64 kB / 0.6895 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-05/0.8651, allocations: 35.48 kB / 0.6895 GB, free: 106 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0002823/0.8654, allocations: 311.9 kB / 0.6898 GB, free: 105.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 1e-07/0.8654, allocations: 0 / 0.6898 GB, free: 105.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009924/0.8664, allocations: 418.2 kB / 0.6902 GB, free: 105.9 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.0002434/0.8666, allocations: 174 kB / 0.6904 GB, free: 105.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002657/0.8693, allocations: 1.754 MB / 0.6921 GB, free: 105.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.8693, allocations: 0 / 0.6921 GB, free: 105.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001696/0.871, allocations: 1.162 MB / 0.6932 GB, free: 105.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006857/0.8717, allocations: 104.5 kB / 0.6933 GB, free: 105.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003033/0.8748, allocations: 2.562 MB / 0.6958 GB, free: 104.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004796/0.8752, allocations: 1.076 MB / 0.6969 GB, free: 103.5 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004908/0.8757, allocations: 111 kB / 0.697 GB, free: 103.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.8759, allocations: 59.97 kB / 0.697 GB, free: 103.5 MB / 490.7 MB Notification: Performance of SimCode: time 7.52e-07/0.8759, allocations: 0 / 0.697 GB, free: 103.5 MB / 490.7 MB Notification: Performance of Templates: time 0.02426/0.9002, allocations: 16.16 MB / 0.7128 GB, free: 102.5 MB / 490.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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:26: ./ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_functions.h:286: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); ^ 1 error generated. make: *** [: ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.o] Error 1