Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001065, allocations: 197.5 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 226.5 MB / 244.1 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008113/0.0008113, allocations: 100.2 kB / 296.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3209/0.3209, allocations: 44.82 MB / 393 MB, free: 35.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000238/0.000238, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.302, allocations: 62.96 MB / 0.5165 GB, free: 37.38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.428, allocations: 103.6 MB / 0.6176 GB, free: 1.836 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.4283, allocations: 83.95 kB / 0.6177 GB, free: 1.754 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09278/0.521, allocations: 40.46 MB / 0.6572 GB, free: 8.824 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5211, allocations: 0 / 0.6572 GB, free: 8.824 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.661e-05/0.5211, allocations: 20 kB / 0.6572 GB, free: 8.805 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.005382/0.5265, allocations: 1.729 MB / 0.6589 GB, free: 7.023 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.5266, allocations: 12.03 kB / 0.6589 GB, free: 7.012 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006385/0.533, allocations: 0.9906 MB / 0.6599 GB, free: 6.02 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.5344, allocations: 0.609 MB / 0.6605 GB, free: 5.367 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.5345, allocations: 95.02 kB / 0.6606 GB, free: 5.273 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003898/0.5349, allocations: 136.3 kB / 0.6607 GB, free: 5.141 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003329/0.5383, allocations: 1.483 MB / 0.6621 GB, free: 3.609 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.005e-05/0.5384, allocations: 7.938 kB / 0.6622 GB, free: 3.602 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001507/0.5385, allocations: 56 kB / 0.6622 GB, free: 3.547 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/0.5386, allocations: 36 kB / 0.6622 GB, free: 3.512 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002805/0.5414, allocations: 1.533 MB / 0.6637 GB, free: 1.973 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008717/0.5501, allocations: 5.704 MB / 0.6693 GB, free: 11.95 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002351/0.5525, allocations: 2.189 MB / 0.6714 GB, free: 9.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.5535, allocations: 0.6593 MB / 0.6721 GB, free: 8.859 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002208/0.5538, allocations: 191.1 kB / 0.6723 GB, free: 8.637 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.5538, allocations: 47.56 kB / 0.6723 GB, free: 8.582 MB / 490.7 MB Notification: Performance of pre-optimization done (n=127): time 3.577e-06/0.5539, allocations: 0 / 0.6723 GB, free: 8.582 MB / 490.7 MB Notification: Performance of matching and sorting (n=127): time 0.008641/0.5625, allocations: 3.075 MB / 0.6753 GB, free: 5.477 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.5626, allocations: 98.03 kB / 0.6754 GB, free: 5.363 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006236/0.5632, allocations: 457.9 kB / 0.6758 GB, free: 4.906 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.249e-05/0.5633, allocations: 45.7 kB / 0.6759 GB, free: 4.855 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002878/0.5636, allocations: 459.6 kB / 0.6763 GB, free: 4.398 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/0.564, allocations: 425.8 kB / 0.6767 GB, free: 3.977 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.111e-05/0.5641, allocations: 20 kB / 0.6768 GB, free: 3.957 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.5642, allocations: 390.8 kB / 0.6771 GB, free: 3.566 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008569/0.5651, allocations: 454.4 kB / 0.6776 GB, free: 3.121 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000998/0.5661, allocations: 0.6775 MB / 0.6782 GB, free: 2.367 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001886/0.568, allocations: 1.163 MB / 0.6794 GB, free: 1.121 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.568, allocations: 0 / 0.6794 GB, free: 1.121 MB / 490.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.2007/0.7687, allocations: 1.546 MB / 0.6809 GB, free: 106.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.7688, allocations: 8.125 kB / 0.6809 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.7688, allocations: 6.25 kB / 0.6809 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001666/0.7705, allocations: 0.5102 MB / 0.6814 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008808/0.7714, allocations: 194.6 kB / 0.6816 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00569/0.7771, allocations: 4.274 MB / 0.6857 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008049/0.7779, allocations: 131.3 kB / 0.6859 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.281e-05/0.778, allocations: 45.31 kB / 0.6859 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.0004712/0.7785, allocations: 263.4 kB / 0.6862 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.7786, allocations: 90.86 kB / 0.6862 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002657/0.7813, allocations: 1.629 MB / 0.6878 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.7813, allocations: 12.44 kB / 0.6878 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.7813, allocations: 5.641 kB / 0.6879 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.7813, allocations: 9.953 kB / 0.6879 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003827/0.7852, allocations: 2.868 MB / 0.6907 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.7852, allocations: 7.656 kB / 0.6907 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005856/0.7858, allocations: 144.9 kB / 0.6908 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/0.7871, allocations: 0.5122 MB / 0.6913 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.7872, allocations: 26.09 kB / 0.6913 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005294/0.7925, allocations: 4.266 MB / 0.6955 GB, free: 103.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.7925, allocations: 6.344 kB / 0.6955 GB, free: 103.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003243/0.7958, allocations: 2.281 MB / 0.6977 GB, free: 103.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003994/0.7962, allocations: 288.7 kB / 0.698 GB, free: 102.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.934e-05/0.7963, allocations: 20.81 kB / 0.698 GB, free: 102.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005613/0.7969, allocations: 55.39 kB / 0.6981 GB, free: 102.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.7971, allocations: 108.8 kB / 0.6982 GB, free: 102.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-05/0.7972, allocations: 39.03 kB / 0.6982 GB, free: 102.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0002994/0.7975, allocations: 311.4 kB / 0.6985 GB, free: 102.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7975, allocations: 0 / 0.6985 GB, free: 102.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0011/0.7986, allocations: 419.3 kB / 0.6989 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.000284/0.7989, allocations: 179.3 kB / 0.6991 GB, free: 102.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002822/0.8017, allocations: 1.755 MB / 0.7008 GB, free: 102 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.8017, allocations: 5 kB / 0.7008 GB, free: 102 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001763/0.8035, allocations: 1.163 MB / 0.7019 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.0007326/0.8043, allocations: 102.6 kB / 0.702 GB, free: 101.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003328/0.8076, allocations: 2.638 MB / 0.7046 GB, free: 99.91 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005165/0.8081, allocations: 1.076 MB / 0.7057 GB, free: 99.19 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002876/0.8084, allocations: 67.19 kB / 0.7057 GB, free: 99.18 MB / 490.7 MB Notification: Performance of SimCode: time 5.91e-07/0.8084, allocations: 1.312 kB / 0.7057 GB, free: 99.18 MB / 490.7 MB Notification: Performance of Templates: time 0.02367/0.8321, allocations: 17.67 MB / 0.723 GB, free: 97.75 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile clang++ -std=c++14 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.IdealCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.IdealCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.IdealCalcHelperMain.cpp:15: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.IdealTypes.h:28:9: error: unknown type name '_omcQComplexOutput_24currentSensor_24iType' typedef _omcQComplexOutput_24currentSensor_24iType _omcQComplexOutput_24currentSensor_24iRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.IdealCalcHelperMain.cpp:16: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.IdealFunctions.h:18:89: error: unknown type name '_omcQComplexOutput_24currentSensor_24iType' void /*RecordTypetest*/ _omcQComplexOutput_24currentSensor_24i(double re_, double im_,_omcQComplexOutput_24currentSensor_24iType &output ); ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.IdealCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.IdealFunctions.cpp:53:80: error: unknown type name '_omcQComplexOutput_24currentSensor_24iType' void Functions::_omcQComplexOutput_24currentSensor_24i(double re_, double im_, _omcQComplexOutput_24currentSensor_24iType& output) ^ 3 errors generated. make: *** [: OMCppModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.IdealCalcHelperMain.o] Error 1