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.001312/0.001312, allocations: 177 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.376/1.376, allocations: 223.2 MB / 241 MB, free: 11.88 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.0008869/0.0008868, allocations: 99.75 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.3454/0.3454, allocations: 44.21 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.0003021, allocations: 8 kB / 459.9 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3263, allocations: 61.91 MB / 0.5096 GB, free: 38.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.4555, allocations: 102.5 MB / 0.6097 GB, free: 8.582 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.4558, allocations: 91.94 kB / 0.6098 GB, free: 8.492 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09426/0.5501, allocations: 38.78 MB / 0.6476 GB, free: 1.254 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.767e-06/0.5501, allocations: 3.938 kB / 0.6476 GB, free: 1.25 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.075e-05/0.5502, allocations: 31.94 kB / 0.6477 GB, free: 1.219 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.007301/0.5575, allocations: 1.729 MB / 0.6494 GB, free: 15.44 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.5576, allocations: 8.562 kB / 0.6494 GB, free: 15.43 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006329/0.5639, allocations: 0.9896 MB / 0.6503 GB, free: 14.44 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001664/0.5656, allocations: 0.6002 MB / 0.6509 GB, free: 13.79 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.5657, allocations: 94.64 kB / 0.651 GB, free: 13.7 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002474/0.566, allocations: 132 kB / 0.6511 GB, free: 13.57 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002779/0.5688, allocations: 1.483 MB / 0.6526 GB, free: 12.04 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.955e-05/0.5688, allocations: 7.906 kB / 0.6526 GB, free: 12.03 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.569, allocations: 48 kB / 0.6526 GB, free: 11.98 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.872e-05/0.569, allocations: 43.94 kB / 0.6527 GB, free: 11.94 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/0.5717, allocations: 1.525 MB / 0.6542 GB, free: 10.41 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008203/0.5799, allocations: 5.462 MB / 0.6595 GB, free: 4.688 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002264/0.5822, allocations: 2.189 MB / 0.6616 GB, free: 2.258 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.5824, allocations: 106.1 kB / 0.6617 GB, free: 2.137 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.5824, allocations: 51.56 kB / 0.6618 GB, free: 2.078 MB / 474.7 MB Notification: Performance of pre-optimization done (n=127): time 4.208e-06/0.5824, allocations: 0 / 0.6618 GB, free: 2.078 MB / 474.7 MB Notification: Performance of matching and sorting (n=127): time 0.008088/0.5905, allocations: 3.021 MB / 0.6647 GB, free: 15.02 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.5906, allocations: 94.14 kB / 0.6648 GB, free: 14.91 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005765/0.5912, allocations: 405.1 kB / 0.6652 GB, free: 14.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001148/0.5913, allocations: 45.7 kB / 0.6653 GB, free: 14.45 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003002/0.5916, allocations: 451.7 kB / 0.6657 GB, free: 14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003379/0.592, allocations: 421.7 kB / 0.6661 GB, free: 13.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.739e-05/0.592, allocations: 24 kB / 0.6661 GB, free: 13.56 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.5923, allocations: 386.7 kB / 0.6665 GB, free: 13.18 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008343/0.5931, allocations: 462.4 kB / 0.6669 GB, free: 12.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009563/0.5941, allocations: 0.6658 MB / 0.6676 GB, free: 11.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009365/0.595, allocations: 0.5098 MB / 0.6681 GB, free: 11.47 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.595, allocations: 4 kB / 0.6681 GB, free: 11.47 MB / 490.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002672/0.5977, allocations: 1.535 MB / 0.6696 GB, free: 9.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.5978, allocations: 9.406 kB / 0.6696 GB, free: 9.922 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.5978, allocations: 8 kB / 0.6696 GB, free: 9.914 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.5992, allocations: 0.5202 MB / 0.6701 GB, free: 9.398 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007084/0.5999, allocations: 191.7 kB / 0.6703 GB, free: 9.211 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006694/0.6066, allocations: 4.421 MB / 0.6746 GB, free: 4.648 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009123/0.6076, allocations: 126.7 kB / 0.6747 GB, free: 4.523 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-05/0.6077, allocations: 51.98 kB / 0.6748 GB, free: 4.473 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.0005704/0.6083, allocations: 267 kB / 0.675 GB, free: 4.203 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.6084, allocations: 79.06 kB / 0.6751 GB, free: 4.125 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002965/0.6114, allocations: 1.649 MB / 0.6767 GB, free: 2.457 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/0.6114, allocations: 15.95 kB / 0.6767 GB, free: 2.441 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.6114, allocations: 0 / 0.6767 GB, free: 2.441 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.6115, allocations: 7.969 kB / 0.6767 GB, free: 2.434 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2384/0.8498, allocations: 2.867 MB / 0.6795 GB, free: 107.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/0.8499, allocations: 1.359 kB / 0.6795 GB, free: 107.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008411/0.8507, allocations: 140.6 kB / 0.6797 GB, free: 107.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001709/0.8525, allocations: 0.5102 MB / 0.6802 GB, free: 107.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/0.8526, allocations: 30.81 kB / 0.6802 GB, free: 107.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005767/0.8584, allocations: 4.405 MB / 0.6845 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.8584, allocations: 2.281 kB / 0.6845 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003383/0.8618, allocations: 2.307 MB / 0.6868 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004796/0.8623, allocations: 294.4 kB / 0.687 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.8624, allocations: 22.44 kB / 0.6871 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005887/0.863, allocations: 55.52 kB / 0.6871 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.8633, allocations: 98.64 kB / 0.6872 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.122e-05/0.8633, allocations: 36.14 kB / 0.6872 GB, free: 105.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003256/0.8637, allocations: 308.6 kB / 0.6875 GB, free: 105.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8637, allocations: 4.406 kB / 0.6875 GB, free: 105.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001164/0.8648, allocations: 414.2 kB / 0.6879 GB, free: 105.6 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.0002581/0.8651, allocations: 173.2 kB / 0.6881 GB, free: 105.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002768/0.8679, allocations: 1.756 MB / 0.6898 GB, free: 105.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.8679, allocations: 0 / 0.6898 GB, free: 105.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/0.8697, allocations: 1.162 MB / 0.691 GB, free: 105.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.8702, allocations: 82.14 kB / 0.691 GB, free: 105.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004831/0.875, allocations: 3.14 MB / 0.6941 GB, free: 104 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/0.8755, allocations: 1.097 MB / 0.6952 GB, free: 103.3 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005277/0.876, allocations: 107.7 kB / 0.6953 GB, free: 103.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.8762, allocations: 60.81 kB / 0.6953 GB, free: 103.2 MB / 490.7 MB Notification: Performance of SimCode: time 4.9e-07/0.8762, allocations: 0 / 0.6953 GB, free: 103.2 MB / 490.7 MB Notification: Performance of Templates: time 0.02596/0.9022, allocations: 16.08 MB / 0.711 GB, free: 102.3 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 -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -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:24: ./ModelicaTest_4.0.0_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); ^ 1 error generated. make: *** [: ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.o] Error 1