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: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 197.5 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.646/1.646, allocations: 226.5 MB / 245.4 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007823/0.0007821, allocations: 98.44 kB / 297.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3839/0.3839, allocations: 44.83 MB / 394.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003887, allocations: 8 kB / 467.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4251/0.4255, allocations: 62.97 MB / 0.5184 GB, free: 37.38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.151/0.5766, allocations: 103.6 MB / 0.6196 GB, free: 1.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/0.5769, allocations: 87.94 kB / 0.6196 GB, free: 1.668 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09318/0.6701, allocations: 40.45 MB / 0.6591 GB, free: 8.746 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6702, allocations: 0 / 0.6591 GB, free: 8.746 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.153e-05/0.6702, allocations: 24 kB / 0.6592 GB, free: 8.723 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.004931/0.6751, allocations: 1.737 MB / 0.6609 GB, free: 6.934 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.6752, allocations: 8.031 kB / 0.6609 GB, free: 6.926 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00634/0.6816, allocations: 0.9906 MB / 0.6618 GB, free: 5.934 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001381/0.683, allocations: 0.6091 MB / 0.6624 GB, free: 5.281 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.449e-05/0.6831, allocations: 95.02 kB / 0.6625 GB, free: 5.188 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002077/0.6833, allocations: 132.3 kB / 0.6626 GB, free: 5.059 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002699/0.686, allocations: 1.491 MB / 0.6641 GB, free: 3.52 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.312e-05/0.6861, allocations: 3.938 kB / 0.6641 GB, free: 3.516 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.6862, allocations: 55.94 kB / 0.6642 GB, free: 3.461 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.716e-05/0.6862, allocations: 36 kB / 0.6642 GB, free: 3.426 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002591/0.6888, allocations: 1.533 MB / 0.6657 GB, free: 1.887 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008566/0.6974, allocations: 5.701 MB / 0.6713 GB, free: 11.86 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002349/0.6998, allocations: 2.197 MB / 0.6734 GB, free: 9.426 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009624/0.7008, allocations: 0.6515 MB / 0.674 GB, free: 8.773 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001964/0.701, allocations: 179.2 kB / 0.6742 GB, free: 8.562 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.643e-05/0.701, allocations: 51.56 kB / 0.6743 GB, free: 8.504 MB / 490.7 MB Notification: Performance of pre-optimization done (n=127): time 3.317e-06/0.7011, allocations: 0 / 0.6743 GB, free: 8.504 MB / 490.7 MB Notification: Performance of matching and sorting (n=127): time 0.009713/0.7108, allocations: 3.082 MB / 0.6773 GB, free: 5.391 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.064e-05/0.7109, allocations: 98.08 kB / 0.6774 GB, free: 5.277 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006906/0.7116, allocations: 457.9 kB / 0.6778 GB, free: 4.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.956e-05/0.7117, allocations: 49.7 kB / 0.6778 GB, free: 4.766 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/0.712, allocations: 455.6 kB / 0.6783 GB, free: 4.312 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003307/0.7123, allocations: 421.8 kB / 0.6787 GB, free: 3.895 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.7124, allocations: 20 kB / 0.6787 GB, free: 3.875 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.7125, allocations: 386.8 kB / 0.6791 GB, free: 3.488 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007987/0.7134, allocations: 458.5 kB / 0.6795 GB, free: 3.039 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009526/0.7143, allocations: 0.6775 MB / 0.6802 GB, free: 2.285 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001823/0.7161, allocations: 1.163 MB / 0.6813 GB, free: 1.039 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.7162, allocations: 4 kB / 0.6813 GB, free: 1.035 MB / 490.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.341/1.057, allocations: 1.536 MB / 0.6828 GB, free: 106.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/1.057, allocations: 10.69 kB / 0.6828 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.779e-05/1.057, allocations: 6.312 kB / 0.6828 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001919/1.059, allocations: 0.5157 MB / 0.6833 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/1.06, allocations: 192.4 kB / 0.6835 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00732/1.068, allocations: 4.279 MB / 0.6877 GB, free: 105.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/1.069, allocations: 127.2 kB / 0.6878 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.87e-05/1.069, allocations: 48.56 kB / 0.6879 GB, free: 105.5 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.0005892/1.069, allocations: 264.2 kB / 0.6881 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/1.07, allocations: 82.47 kB / 0.6882 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002776/1.072, allocations: 1.634 MB / 0.6898 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/1.072, allocations: 11.62 kB / 0.6898 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.072, allocations: 3.844 kB / 0.6898 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/1.072, allocations: 6.656 kB / 0.6898 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004326/1.077, allocations: 2.874 MB / 0.6926 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/1.077, allocations: 9.906 kB / 0.6926 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005857/1.077, allocations: 143.2 kB / 0.6928 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001313/1.079, allocations: 0.508 MB / 0.6933 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.7e-05/1.079, allocations: 32.38 kB / 0.6933 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005665/1.084, allocations: 4.275 MB / 0.6975 GB, free: 103.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/1.084, allocations: 3.938 kB / 0.6975 GB, free: 103.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00345/1.088, allocations: 2.28 MB / 0.6997 GB, free: 103.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004725/1.088, allocations: 290.1 kB / 0.7 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.647e-05/1.089, allocations: 25.78 kB / 0.7 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000547/1.089, allocations: 55.03 kB / 0.7 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/1.089, allocations: 103.7 kB / 0.7001 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.554e-05/1.089, allocations: 30.22 kB / 0.7002 GB, free: 103 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003536/1.09, allocations: 311.3 kB / 0.7005 GB, free: 102.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.09, allocations: 0 / 0.7005 GB, free: 102.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001333/1.091, allocations: 423.3 kB / 0.7009 GB, free: 102.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.0003226/1.091, allocations: 181.9 kB / 0.701 GB, free: 102.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003042/1.095, allocations: 1.752 MB / 0.7028 GB, free: 102 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/1.095, allocations: 2.719 kB / 0.7028 GB, free: 102 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/1.096, allocations: 1.158 MB / 0.7039 GB, free: 101.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000759/1.097, allocations: 109.5 kB / 0.704 GB, free: 101.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004046/1.101, allocations: 2.59 MB / 0.7065 GB, free: 99.93 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006875/1.102, allocations: 1.07 MB / 0.7076 GB, free: 99.21 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005863/1.103, allocations: 113.9 kB / 0.7077 GB, free: 99.18 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/1.103, allocations: 59.75 kB / 0.7077 GB, free: 99.17 MB / 490.7 MB Notification: Performance of SimCode: time 1.052e-06/1.103, allocations: 0 / 0.7077 GB, free: 99.17 MB / 490.7 MB Notification: Performance of Templates: time 0.03365/1.136, allocations: 16.19 MB / 0.7235 GB, free: 98.2 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile make -j1 -f ModelicaTest_trunk_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_trunk_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_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:26: ./ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.o] Error 1