Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001018, allocations: 92.7 kB / 17.63 MB, free: 6.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 178.8 kB / 18.52 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 223.2 MB / 242.5 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2241/0.2241, allocations: 44.22 MB / 337.9 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004733/0.0004735, allocations: 14.83 kB / 410.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1649, allocations: 61.92 MB / 472.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003666/0.1687, allocations: 2.463 MB / 474.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.1699, allocations: 0.6197 MB / 475.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.1701, allocations: 11.94 kB / 475.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.1703, allocations: 39.69 kB / 475.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.1705, allocations: 83.3 kB / 475.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001726/0.1706, allocations: 63.92 kB / 475.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.1711, allocations: 366.4 kB / 475.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002661/0.1713, allocations: 102.2 kB / 475.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.1715, allocations: 123.6 kB / 476 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.1717, allocations: 143.4 kB / 476.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.821e-05/0.1718, allocations: 20 kB / 476.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.066e-05/0.1718, allocations: 16 kB / 476.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.486e-05/0.1719, allocations: 47.83 kB / 476.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.31e-05/0.172, allocations: 85.52 kB / 476.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002907/0.1723, allocations: 283.4 kB / 476.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.1723, allocations: 0 / 476.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.1723, allocations: 8 kB / 476.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.525e-06/0.1723, allocations: 0 / 476.6 MB, free: 9.258 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001066/0.1734, allocations: 0.5885 MB / 477.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.1735, allocations: 12.56 kB / 477.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.593e-05/0.1736, allocations: 31.62 kB / 477.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003859/0.1739, allocations: 263 kB / 477.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.909e-05/0.174, allocations: 24.5 kB / 477.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.225e-05/0.174, allocations: 31.95 kB / 477.6 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006097/0.1747, allocations: 328.5 kB / 477.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1747, allocations: 4 kB / 477.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.614e-05/0.1747, allocations: 15.94 kB / 477.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.1748, allocations: 11.94 kB / 477.9 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005129/0.1753, allocations: 250.1 kB / 478.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.1775, allocations: 1.281 MB / 479.4 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008114/0.1783, allocations: 0.4917 MB / 479.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000344/0.1786, allocations: 165.3 kB / 480.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.1787, allocations: 4.234 kB / 480.1 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.1787, allocations: 38.8 kB / 480.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.352e-06/0.1787, allocations: 0 / 480.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002904/0.1816, allocations: 1.175 MB / 481.3 MB, free: 4.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.1817, allocations: 55.41 kB / 481.4 MB, free: 4.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002683/0.182, allocations: 240.9 kB / 481.6 MB, free: 3.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.182, allocations: 33.7 kB / 481.6 MB, free: 3.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.1822, allocations: 168.3 kB / 481.8 MB, free: 3.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.558e-05/0.1822, allocations: 94.64 kB / 481.9 MB, free: 3.664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.327e-05/0.1823, allocations: 4 kB / 481.9 MB, free: 3.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1824, allocations: 330.8 kB / 482.2 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.1827, allocations: 108 kB / 482.3 MB, free: 3.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002521/0.1829, allocations: 156.2 kB / 482.5 MB, free: 3.055 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000238/0.1832, allocations: 120 kB / 482.6 MB, free: 2.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1832, allocations: 0 / 482.6 MB, free: 2.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001087/0.1843, allocations: 0.5338 MB / 483.1 MB, free: 2.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1843, allocations: 4 kB / 483.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1843, allocations: 0 / 483.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009395/0.1853, allocations: 285.5 kB / 483.4 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.1854, allocations: 35.92 kB / 483.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003915/0.1893, allocations: 3.51 MB / 487 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.1896, allocations: 39.7 kB / 487 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.1896, allocations: 8.062 kB / 487 MB, free: 14.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001994/0.1898, allocations: 149.8 kB / 487.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.833e-05/0.1899, allocations: 31.66 kB / 487.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.841e-05/0.1899, allocations: 34.86 kB / 487.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.1899, allocations: 4 kB / 487.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.19, allocations: 0 / 487.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.19, allocations: 3.984 kB / 487.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/0.1916, allocations: 0.9368 MB / 488.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.1916, allocations: 4 kB / 488.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.513e-05/0.1917, allocations: 16 kB / 488.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008146/0.1925, allocations: 281.8 kB / 488.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.1925, allocations: 8 kB / 488.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003683/0.1962, allocations: 3.511 MB / 492 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.1962, allocations: 3.984 kB / 492 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.1973, allocations: 0.5876 MB / 492.6 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.1974, allocations: 128.7 kB / 492.7 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.1975, allocations: 4 kB / 492.7 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.1977, allocations: 39.92 kB / 492.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.1978, allocations: 27.95 kB / 492.8 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.1978, allocations: 4 kB / 492.8 MB, free: 8.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001611/0.198, allocations: 176.5 kB / 492.9 MB, free: 7.926 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.198, allocations: 0 / 492.9 MB, free: 7.926 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004666/0.1984, allocations: 103.9 kB / 493 MB, free: 7.824 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001377/0.1986, allocations: 107.2 kB / 493.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009787/0.1996, allocations: 0.5714 MB / 493.7 MB, free: 7.113 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.1996, allocations: 0 / 493.7 MB, free: 7.113 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005721/0.2002, allocations: 457.1 kB / 494.2 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.2006, allocations: 40.89 kB / 494.2 MB, free: 6.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009867/0.2016, allocations: 0.6439 MB / 494.8 MB, free: 5.926 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.2019, allocations: 0.7679 MB / 495.6 MB, free: 5.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.38e-05/0.202, allocations: 19.44 kB / 495.6 MB, free: 5.117 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.202, allocations: 0 / 495.6 MB, free: 5.117 MB / 366.1 MB Notification: Performance of Templates: time 0.007888/0.2099, allocations: 5.541 MB / 0.4894 GB, free: 15.58 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile clang++ NOTFOUND -Winvalid-pch -O0 -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/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitchesCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitchesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitchesCalcHelperMain.o] Error 1